File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33use Illuminate \Support \Facades \File ;
44
55beforeEach (function () {
6- // 1. Define a relative path we can pass to the command's -- path option
6+ // 1. Define a relative path we can pass to the command's path argument
77 $ this ->testPath = 'storage/framework/testing/fake_sharp_app ' ;
88
99 // 2. Resolve the absolute path to create our test files
@@ -47,9 +47,7 @@ public function buildFilterConfig(): void
4747});
4848
4949it ('updates sharp configuration syntax correctly ' , function () {
50- $ this ->artisan ('sharp:upgrade ' , [
51- '--path ' => $ this ->testPath ,
52- ])
50+ $ this ->artisan ('sharp:upgrade ' .$ this ->testPath )
5351 ->expectsOutputToContain ('Updated: AuthorFilter.php ' )
5452 ->expectsOutputToContain ('1 files were successfully updated. ' )
5553 ->assertSuccessful ();
@@ -90,9 +88,7 @@ class AuthorFilter extends SelectFilter {}
9088 File::put ($ this ->dummyFilePath , $ modernContent );
9189
9290 // Command should report 0 files updated
93- $ this ->artisan ('sharp:upgrade ' , [
94- '--path ' => $ this ->testPath ,
95- ])
91+ $ this ->artisan ('sharp:upgrade ' .$ this ->testPath )
9692 ->expectsOutputToContain ('0 files were successfully updated. ' )
9793 ->assertSuccessful ();
9894
You can’t perform that action at this time.
0 commit comments