Skip to content

Commit

Permalink
Fixed Call to undefined method Illuminate\Testing\PendingCommand::ass…
Browse files Browse the repository at this point in the history
…ertSuccessful()
  • Loading branch information
andrey-helldar committed Feb 12, 2023
1 parent 2cdc820 commit 32a0b6f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/CommonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function testAdd(): void

$this->artisan('lang:add', [
'locales' => [Locales::AFRIKAANS, Locales::ALBANIAN, Locales::ARABIC],
])->assertSuccessful();
])->assertExitCode(0);

$this->assertDirectoryExists($this->langPath(Locales::ENGLISH));
$this->assertDirectoryExists($this->langPath(Locales::AFRIKAANS));
Expand All @@ -29,7 +29,7 @@ public function testUpdate(): void
{
$this->testAdd();

$this->artisan('lang:update')->assertSuccessful();
$this->artisan('lang:update')->assertExitCode(0);

$this->assertDirectoryExists($this->langPath(Locales::ENGLISH));
$this->assertDirectoryExists($this->langPath(Locales::AFRIKAANS));
Expand All @@ -43,7 +43,7 @@ public function testRemove(): void

$this->artisan('lang:rm')
->expectsConfirmation('Do you want to remove all localizations?', 'yes')
->assertSuccessful();
->assertExitCode(0);

$this->assertDirectoryExists($this->langPath(Locales::ENGLISH));
$this->assertDirectoryDoesNotExist($this->langPath(Locales::AFRIKAANS));
Expand All @@ -54,7 +54,7 @@ public function testRemove(): void

$this->artisan('lang:rm', [
'locales' => Locales::ALBANIAN,
])->assertSuccessful();
])->assertExitCode(0);

$this->assertDirectoryExists($this->langPath(Locales::ENGLISH));
$this->assertDirectoryExists($this->langPath(Locales::AFRIKAANS));
Expand All @@ -68,7 +68,7 @@ public function testReset(): void

$this->artisan('lang:reset')
->expectsConfirmation('Do you want to reset all localizations?', 'yes')
->assertSuccessful();
->assertExitCode(0);

$this->assertDirectoryExists($this->langPath(Locales::ENGLISH));
$this->assertDirectoryExists($this->langPath(Locales::AFRIKAANS));
Expand All @@ -77,7 +77,7 @@ public function testReset(): void

$this->artisan('lang:reset', [
'locales' => Locales::ALBANIAN,
])->assertSuccessful();
])->assertExitCode(0);

$this->assertDirectoryExists($this->langPath(Locales::ENGLISH));
$this->assertDirectoryExists($this->langPath(Locales::AFRIKAANS));
Expand Down

0 comments on commit 32a0b6f

Please sign in to comment.