Skip to content

Commit bb59505

Browse files
committed
fix tests
1 parent d8746b9 commit bb59505

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

tests/Unit/Console/UpgradeTest.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use Illuminate\Support\Facades\File;
44

55
beforeEach(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

4949
it('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

0 commit comments

Comments
 (0)