/** * @magentoDbIsolation enabled */ public function testChangeResetPasswordLinkToken() { $this->_model->loadByUsername(Magento_Test_Bootstrap::ADMIN_NAME); $this->_model->changeResetPasswordLinkToken('test'); $date = $this->_model->getRpTokenCreatedAt(); $this->assertNotNull($date); $this->_model->save(); $this->_model->loadByUsername(Magento_Test_Bootstrap::ADMIN_NAME); $this->assertEquals('test', $this->_model->getRpToken()); $this->assertEquals(strtotime($date), strtotime($this->_model->getRpTokenCreatedAt())); }