/** * Disabled form security in order to prevent exit from the app * @magentoConfigFixture current_store admin/security/session_lifetime 59 */ public function testIsLoggedInWithIgnoredLifetime() { //$this->_model->login(Magento_Test_Bootstrap::ADMIN_NAME, Magento_Test_Bootstrap::ADMIN_PASSWORD); $this->_model->login('', ''); $this->assertTrue($this->_model->isLoggedIn()); $this->_model->setUpdatedAt(time() - 101); $this->assertTrue($this->_model->isLoggedIn()); }
/** * Retrieve url to adminhtml * * @return string */ public function getReturnUrl() { if (!$this->_session || !$this->_session->isLoggedIn()) { return ''; } return Mage::getSingleton('adminhtml/url')->getUrl('adminhtml'); }