diff --git a/tests/CommonTest.php b/tests/CommonTest.php index 4a545d27f..6c94051e5 100644 --- a/tests/CommonTest.php +++ b/tests/CommonTest.php @@ -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)); @@ -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)); @@ -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)); @@ -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)); @@ -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)); @@ -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));