mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-13 03:08:39 +00:00
fix test bugs
This commit is contained in:
parent
7e634a99a0
commit
8a1ab7fe6b
|
|
@ -109,12 +109,12 @@ class AccountMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
public function testInvalidLoginTries() : void
|
public function testInvalidLoginTries() : void
|
||||||
{
|
{
|
||||||
$accountR = AccountMapper::get(1);
|
$accountR = AccountMapper::get(1);
|
||||||
$accountR->tries = 0;
|
$accountR->tries = 10;
|
||||||
AccountMapper::update($accountR);
|
AccountMapper::update($accountR);
|
||||||
|
|
||||||
self::assertEquals(LoginReturnType::WRONG_INPUT_EXCEEDED, AccountMapper::login($accountR->login, 'orange'));
|
self::assertEquals(LoginReturnType::WRONG_INPUT_EXCEEDED, AccountMapper::login($accountR->login, 'orange'));
|
||||||
|
|
||||||
$accountR->tries = 3;
|
$accountR->tries = 0;
|
||||||
AccountMapper::update($accountR);
|
AccountMapper::update($accountR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user