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'); }