From 32a0b6f83a508eae8a433a94b53f777210a5b7c0 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Sun, 12 Feb 2023 16:36:30 +0300 Subject: [PATCH] Fixed Call to undefined method Illuminate\Testing\PendingCommand::assertSuccessful() --- tests/CommonTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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));