File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
TwoFactorAuth/Test/Integration/Model/Provider/Engine/DuoSecurity Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1010
1111use Magento \Framework \App \ObjectManager ;
1212use Magento \TestFramework \Bootstrap ;
13- use Magento \TwoFactorAuth \Api \Data \DuoDataInterface ;
1413use Magento \TwoFactorAuth \Api \TfaInterface ;
1514use Magento \TwoFactorAuth \Api \UserConfigTokenManagerInterface ;
1615use Magento \TwoFactorAuth \Model \Provider \Engine \DuoSecurity ;
@@ -52,10 +51,10 @@ class AuthenticateTest extends TestCase
5251 protected function setUp (): void
5352 {
5453 $ objectManager = ObjectManager::getInstance ();
55- $ this ->userFactory = $ objectManager ->get (UserFactory::class);
5654 $ this ->tokenManager = $ objectManager ->get (UserConfigTokenManagerInterface::class);
5755 $ this ->tfa = $ objectManager ->get (TfaInterface::class);
5856 $ this ->duo = $ this ->createMock (DuoSecurity::class);
57+ $ this ->userFactory = $ objectManager ->get (UserFactory::class);
5958 $ this ->model = $ objectManager ->create (
6059 Authenticate::class,
6160 [
Original file line number Diff line number Diff line change 99namespace Magento \TwoFactorAuth \Test \Integration \Model \Provider \Engine \DuoSecurity ;
1010
1111use Magento \Framework \App \ObjectManager ;
12- use Magento \TwoFactorAuth \Api \Data \DuoDataInterface ;
1312use Magento \TwoFactorAuth \Api \TfaInterface ;
1413use Magento \TwoFactorAuth \Api \UserConfigTokenManagerInterface ;
1514use Magento \TwoFactorAuth \Model \Provider \Engine \DuoSecurity ;
@@ -57,10 +56,10 @@ class ConfigureTest extends TestCase
5756 protected function setUp (): void
5857 {
5958 $ objectManager = ObjectManager::getInstance ();
60- $ this ->userFactory = $ objectManager ->get (UserFactory::class);
6159 $ this ->tokenManager = $ objectManager ->get (UserConfigTokenManagerInterface::class);
6260 $ this ->tfa = $ objectManager ->get (TfaInterface::class);
6361 $ this ->duo = $ this ->createMock (DuoSecurity::class);
62+ $ this ->userFactory = $ objectManager ->get (UserFactory::class);
6463 $ this ->authenticate = $ this ->createMock (Authenticate::class);
6564 $ this ->model = $ objectManager ->create (
6665 Configure::class,
You can’t perform that action at this time.
0 commit comments