Rename failed function

This commit is contained in:
philipp lang 2022-09-01 23:11:21 +02:00
parent 2c28580194
commit 6ad2091878
3 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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];
}

View File

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