File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
dev/tests/integration/testsuite/Magento/Security/Model/Plugin Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,13 @@ class AuthSessionTest extends \PHPUnit_Framework_TestCase
40
40
*/
41
41
protected $ dateTime ;
42
42
43
+ /**
44
+ * Session Manager.
45
+ *
46
+ * @var \Magento\Framework\Session\SessionManager
47
+ */
48
+ private $ sessionManager ;
49
+
43
50
/**
44
51
* Set up
45
52
*/
@@ -48,14 +55,15 @@ protected function setUp()
48
55
parent ::setUp ();
49
56
50
57
$ 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)
52
60
->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 );
56
64
$ 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 );
59
67
}
60
68
61
69
/**
You can’t perform that action at this time.
0 commit comments