Ejemplo n.º 1
0
 public function testSetLockedUntilColumn()
 {
     $clearDb = "DROP TABLE IF EXISTS test_auth";
     $this->db->exec($clearDb);
     $this->createDb('qwetz');
     $this->createDefaultUser('qwetz');
     $this->authAdapter->setIdentity('demo')->setCredential(md5('emod'));
     $this->authAdapter->setLockedUntilColumn('qwetz');
     $this->authAdapter->setLockSeconds(30);
     $this->assertEquals($this->getAccountLockDate('qwetz'), '0000-00-00 00:00:00');
 }