CakeDC\Users\Test\TestCase\Model\Entity\UserTest::testUpdateTokenExisting PHP Method

testUpdateTokenExisting() public method

test
public testUpdateTokenExisting ( ) : void
return void
    public function testUpdateTokenExisting()
    {
        $this->User['token'] = 'aaa';
        $this->User['token_expires'] = $this->now;
        $this->User->updateToken();
        $this->assertEquals($this->now, $this->User['token_expires']);
        $this->assertNotEquals('aaa', $this->User['token']);
    }