/**
  * Test if current admin user is logged out
  *
  * @magentoDbIsolation enabled
  */
 public function testProcessLogout()
 {
     $this->auth->login(\Magento\TestFramework\Bootstrap::ADMIN_NAME, \Magento\TestFramework\Bootstrap::ADMIN_PASSWORD);
     $sessionId = $this->authSession->getSessionId();
     $this->auth->logout();
     $this->adminSessionInfo->load($sessionId, 'session_id');
     $this->assertEquals($this->adminSessionInfo->getStatus(), AdminSessionInfo::LOGGED_OUT);
 }
 /**
  * @return void
  */
 public function testIsLoggedInStatusExpired()
 {
     $this->model->setData('status', \Magento\Security\Model\AdminSessionInfo::LOGGED_IN);
     $this->model->setUpdatedAt(899);
     $this->securityConfigMock->expects($this->once())->method('getAdminSessionLifetime')->willReturn(100);
     $this->securityConfigMock->expects($this->once())->method('getCurrentTimestamp')->willReturn(1000);
     $this->assertEquals(false, $this->model->isLoggedInStatus());
     $this->assertEquals(\Magento\Security\Model\AdminSessionInfo::LOGGED_OUT, $this->model->getStatus());
 }