Example #1
0
 /**
  * test
  *
  * @return void
  */
 public function testUpdateTokenExistingAdd()
 {
     $this->User['token'] = 'aaa';
     $this->User['token_expires'] = $this->now;
     $this->User->updateToken(20);
     $nowModified = new Time('now');
     $nowModified->addSecond(20);
     $this->assertEquals($nowModified, $this->User['token_expires']);
     $this->assertNotEquals('aaa', $this->User['token']);
 }