CakeDC\Users\Test\TestCase\Model\Entity\UserTest::testUpdateTokenExistingAdd PHP Méthode

testUpdateTokenExistingAdd() public méthode

test
public testUpdateTokenExistingAdd ( ) : void
Résultat void
    public function testUpdateTokenExistingAdd()
    {
        $this->User['token'] = 'aaa';
        $this->User['token_expires'] = $this->now;
        $this->User->updateToken(20);
        $this->assertEquals('20 seconds after', $this->User['token_expires']->diffForHumans($this->now));
        $this->assertNotEquals('aaa', $this->User['token']);
    }