/**
  * @param bool $expectedResult
  * @param bool $sessionLifetime
  * @dataProvider dataProviderIsActive
  */
 public function testIsActive($expectedResult, $sessionLifetime)
 {
     $this->model->setData('status', \Magento\Security\Model\AdminSessionInfo::LOGGED_IN);
     $this->securityConfigMock->expects($this->any())->method('getAdminSessionLifetime')->will($this->returnValue($sessionLifetime));
     $this->securityConfigMock->expects($this->any())->method('getCurrentTimestamp')->will($this->returnValue(10));
     $this->model->setUpdatedAt(9);
     $this->assertEquals($expectedResult, $this->model->isActive());
 }
 /**
  * @param bool $expectedResult
  * @param string $sessionLifetime
  * @dataProvider dataProviderSessionLifetime
  */
 public function testSessionExpired($expectedResult, $sessionLifetime)
 {
     $timestamp = time();
     $this->securityConfigMock->expects($this->once())->method('getAdminSessionLifetime')->will($this->returnValue($sessionLifetime));
     $this->securityConfigMock->expects($this->once())->method('getCurrentTimestamp')->willReturn($timestamp);
     $this->model->setUpdatedAt(date("Y-m-d H:i:s", $timestamp - 1));
     $this->assertEquals($expectedResult, $this->model->isSessionExpired());
 }