示例#1
0
 /**
  * Tests authenticate (persistent only).
  *
  * @dataProvider instancesProvider
  * @covers empire\framework\login\Login::authenticate
  *
  * @param Login $login the login to test
  */
 public function testAuthenticatePersistent($login)
 {
     $user = new User(self::GID);
     $this->remoteCall('login', $login, array($user, true));
     sleep(3);
     $expected = new User(self::GID);
     $expected->setRestricted(true);
     $res = $this->remoteCall('authenticate', $login);
     $this->assertEquals($expected, $res);
 }