pest icon indicating copy to clipboard operation
pest copied to clipboard

Fix Laravel 11 TestCase.php stub

Open Danger-Mkh opened this issue 1 year ago • 0 comments

What:

  • [x] Bug Fix
  • [ ] New Feature

Description:

As Laravel 11 tests/TestCase.php it doesn't have use CreatesApplication; statement.

So in fresh Laravel install if you install Pest right after that, by default the tests/TestCase.php exists so it would recognized.

I manually removed the tests/TestCase.php so pest:install replaced the stubs, after running the php artisan test command i encouraged an error that shows use CreatesApplication; is not found.

Danger-Mkh avatar Jun 02 '24 14:06 Danger-Mkh