feat: adjusts default conf

This commit is contained in:
Nuno Maduro
2024-07-06 19:30:05 +01:00
parent ccdf43726d
commit 1e5b399603
4 changed files with 8 additions and 9 deletions

View File

@ -7,14 +7,13 @@
| |
| The closure you provide to your test functions is always bound to a specific PHPUnit test | The closure you provide to your test functions is always bound to a specific PHPUnit test
| case class. By default, that class is "PHPUnit\Framework\TestCase". Of course, you may | case class. By default, that class is "PHPUnit\Framework\TestCase". Of course, you may
| need to change it using the "uses()" function to bind a different classes or traits. | need to change it using the "pest()" function to bind a different classes or traits.
| |
*/ */
uses( pest()->extend(Tests\TestCase::class)
Tests\TestCase::class, // ->use(Illuminate\Foundation\Testing\RefreshDatabase::class)
// Illuminate\Foundation\Testing\RefreshDatabase::class, ->in('Feature');
)->in('Feature');
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@ -7,11 +7,11 @@
| |
| The closure you provide to your test functions is always bound to a specific PHPUnit test | The closure you provide to your test functions is always bound to a specific PHPUnit test
| case class. By default, that class is "PHPUnit\Framework\TestCase". Of course, you may | case class. By default, that class is "PHPUnit\Framework\TestCase". Of course, you may
| need to change it using the "uses()" function to bind a different classes or traits. | need to change it using the "pest()" function to bind a different classes or traits.
| |
*/ */
// uses(Tests\TestCase::class)->in('Feature'); // pest()->extend(Tests\TestCase::class)->in('Feature');
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@ -1402,7 +1402,7 @@
PASS Tests\Unit\Support\ExceptionTrace PASS Tests\Unit\Support\ExceptionTrace
✓ it ensures the given closures reports the correct class name ✓ it ensures the given closures reports the correct class name
✓ it ensures the given closures reports the correct class name and suggests the [uses()] function ✓ it ensures the given closures reports the correct class name and suggests the [pest()] function
PASS Tests\Unit\Support\HigherOrderMessage PASS Tests\Unit\Support\HigherOrderMessage
✓ undefined method exceptions ✓ undefined method exceptions

View File

@ -13,7 +13,7 @@ it('ensures the given closures reports the correct class name', function () {
'Call to undefined method Tests\IntentionallyNotExisting::testBasic().', 'Call to undefined method Tests\IntentionallyNotExisting::testBasic().',
); );
it('ensures the given closures reports the correct class name and suggests the [uses()] function', function () { it('ensures the given closures reports the correct class name and suggests the [pest()] function', function () {
$this->get(); $this->get();
})->throws( })->throws(
Error::class, Error::class,