Courses

Testing in Laravel 11 For Beginners

With Pest you can assign tests to a user, issue, or pull request. To use this feature, you must first specify a project. **tests/Pest.php**: ```php pest()->extend(Tests\TestCase::class) ->use(Illuminate\Foundation\Testing\RefreshDatabase::class) ->in('Feature'); pest()->project()->github('LaravelDaily/Laravel-Testing-Course'); // [tl! ++] ``` You can use `gitlab`, `bitbucket`, `jira`, or `custom` methods instead of GitHub. For example, you can set a todo for a test and assign a user. ```php test('product shows when published at correct time', function () { // ... })->todo(assignee: 'PovilasKorop'); // [tl! ++] ```

This lesson is only for Premium Members.
Want to access all lessons of this course?

You also get:

  • 64 courses (1141 lessons, 42 h 01 min total)
  • Premium tutorials
  • Access to repositories
  • Private Discord