mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-01-24 03:08:40 +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
|
||||
{
|
||||
$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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user