Example #1
0
 public function testWithUnknownLogin()
 {
     try {
         UsersLogin::login(self::UnknownLogin, self::Password);
     } catch (\NotFoundException $e) {
     }
     $attempt = new LoginAttempt();
     $this->AssertTrue($attempt->get(1));
     $this->assertEquals($attempt->user_id->getValue(), 0);
     $this->assertEquals($attempt->status->getValue(), LoginAttempt::FailStatus);
 }