Rename failed function
This commit is contained in:
parent
2c28580194
commit
6ad2091878
|
@ -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()
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue