Skip to content

Commit db5e297

Browse files
committed
MAGETWO-70084: [IT] Magento\Security\Model\Plugin\AuthSessionTest::testProcessProlong failed
1 parent f56188d commit db5e297

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

dev/tests/integration/testsuite/Magento/Security/Model/Plugin/AuthSessionTest.php

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ class AuthSessionTest extends \PHPUnit_Framework_TestCase
4040
*/
4141
protected $dateTime;
4242

43+
/**
44+
* Session Manager.
45+
*
46+
* @var \Magento\Framework\Session\SessionManager
47+
*/
48+
private $sessionManager;
49+
4350
/**
4451
* Set up
4552
*/
@@ -48,14 +55,15 @@ protected function setUp()
4855
parent::setUp();
4956

5057
$this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
51-
$this->objectManager->get('Magento\Framework\Config\ScopeInterface')
58+
$this->sessionManager = $this->objectManager->create(\Magento\Framework\Session\SessionManager::class);
59+
$this->objectManager->get(\Magento\Framework\Config\ScopeInterface::class)
5260
->setCurrentScope(\Magento\Backend\App\Area\FrontNameResolver::AREA_CODE);
53-
$this->auth = $this->objectManager->create('Magento\Backend\Model\Auth');
54-
$this->authSession = $this->objectManager->create('Magento\Backend\Model\Auth\Session');
55-
$this->adminSessionInfo = $this->objectManager->create('Magento\Security\Model\AdminSessionInfo');
61+
$this->auth = $this->objectManager->create(\Magento\Backend\Model\Auth::class);
62+
$this->authSession = $this->objectManager->create(\Magento\Backend\Model\Auth\Session::class);
63+
$this->adminSessionInfo = $this->objectManager->create(\Magento\Security\Model\AdminSessionInfo::class);
5664
$this->auth->setAuthStorage($this->authSession);
57-
$this->adminSessionsManager = $this->objectManager->create('Magento\Security\Model\AdminSessionsManager');
58-
$this->dateTime = $this->objectManager->create('Magento\Framework\Stdlib\DateTime');
65+
$this->adminSessionsManager = $this->objectManager->create(\Magento\Security\Model\AdminSessionsManager::class);
66+
$this->dateTime = $this->objectManager->create(\Magento\Framework\Stdlib\DateTime::class);
5967
}
6068

6169
/**

0 commit comments

Comments
 (0)