fix test bugs

This commit is contained in:
Dennis Eichhorn 2020-12-23 20:10:38 +01:00
parent 7e634a99a0
commit 8a1ab7fe6b

View File

@ -109,12 +109,12 @@ class AccountMapperTest extends \PHPUnit\Framework\TestCase
public function testInvalidLoginTries() : void
{
$accountR = AccountMapper::get(1);
$accountR->tries = 0;
$accountR->tries = 10;
AccountMapper::update($accountR);
self::assertEquals(LoginReturnType::WRONG_INPUT_EXCEEDED, AccountMapper::login($accountR->login, 'orange'));
$accountR->tries = 3;
$accountR->tries = 0;
AccountMapper::update($accountR);
}