From 6ad2091878dd6a69ee2db2543cf70c3ef37bad08 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 1 Sep 2022 23:11:21 +0200 Subject: [PATCH] Rename failed function --- src/Authentication/Auth.php | 2 +- src/Authentication/FakeCookie.php | 2 +- tests/TestCase.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Authentication/Auth.php b/src/Authentication/Auth.php index faee095..9e9fd84 100644 --- a/src/Authentication/Auth.php +++ b/src/Authentication/Auth.php @@ -7,7 +7,7 @@ use Illuminate\Support\Facades\Facade; /** * @method static void assertNotLoggedIn() * @method static void success(int $mglnr, string $password) - * @method static void failed(int $mglnr, string $password) + * @method static void fails(int $mglnr, string $password) * @method static void assertLoggedInWith(int $mglnr, string $password) * @method static void assertNotLoggedInWith(int $mglnr, string $password) * @method static void assertLoggedIn() diff --git a/src/Authentication/FakeCookie.php b/src/Authentication/FakeCookie.php index c3a31c6..b20e812 100644 --- a/src/Authentication/FakeCookie.php +++ b/src/Authentication/FakeCookie.php @@ -53,7 +53,7 @@ class FakeCookie extends Authenticator /** * Reisters an account that cannot login with the given password. */ - public function failed(int $mglnr, string $password): void + public function fails(int $mglnr, string $password): void { $this->invalidAccounts[] = ['mglnr' => $mglnr, 'password' => $password]; } diff --git a/tests/TestCase.php b/tests/TestCase.php index e2c16c3..ae81957 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -46,7 +46,7 @@ class TestCase extends \Orchestra\Testbench\TestCase public function loginWithWrongCredentials(): Api { Auth::fake(); - Auth::failed(12345, 'wrong'); + Auth::fails(12345, 'wrong'); return Nami::login(12345, 'wrong'); }