File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public function handle()
115
115
$ this ->removeComposerDevPackages (['phpunit/phpunit ' ]);
116
116
}
117
117
118
- if (! $ this ->requireComposerDevPackages (['pestphp/pest:^2.0 ' , 'pestphp/pest-plugin-laravel:^2.0 ' ])) {
118
+ if (! $ this ->requireComposerDevPackages (['pestphp/pest ' , 'pestphp/pest-plugin-laravel ' ])) {
119
119
return 1 ;
120
120
}
121
121
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- use Illuminate \Foundation \Testing \RefreshDatabase ;
4
- use Tests \TestCase ;
5
-
6
3
/*
7
4
|--------------------------------------------------------------------------
8
5
| Test Case
9
6
|--------------------------------------------------------------------------
10
7
|
11
8
| The closure you provide to your test functions is always bound to a specific PHPUnit test
12
9
| case class. By default, that class is "PHPUnit\Framework\TestCase". Of course, you may
13
- | need to change it using the "uses ()" function to bind a different classes or traits.
10
+ | need to change it using the "pest ()" function to bind a different classes or traits.
14
11
|
15
12
*/
16
13
17
- uses (TestCase::class, RefreshDatabase::class)->in ('Feature ' );
14
+ pest ()->extend (Tests \TestCase::class)
15
+ ->use (Illuminate \Foundation \Testing \RefreshDatabase::class)
16
+ ->in ('Feature ' );
18
17
19
18
/*
20
19
|--------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments