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 10
10
11
11
use Magento \Framework \App \ObjectManager ;
12
12
use Magento \TestFramework \Bootstrap ;
13
- use Magento \TwoFactorAuth \Api \Data \DuoDataInterface ;
14
13
use Magento \TwoFactorAuth \Api \TfaInterface ;
15
14
use Magento \TwoFactorAuth \Api \UserConfigTokenManagerInterface ;
16
15
use Magento \TwoFactorAuth \Model \Provider \Engine \DuoSecurity ;
@@ -52,10 +51,10 @@ class AuthenticateTest extends TestCase
52
51
protected function setUp (): void
53
52
{
54
53
$ objectManager = ObjectManager::getInstance ();
55
- $ this ->userFactory = $ objectManager ->get (UserFactory::class);
56
54
$ this ->tokenManager = $ objectManager ->get (UserConfigTokenManagerInterface::class);
57
55
$ this ->tfa = $ objectManager ->get (TfaInterface::class);
58
56
$ this ->duo = $ this ->createMock (DuoSecurity::class);
57
+ $ this ->userFactory = $ objectManager ->get (UserFactory::class);
59
58
$ this ->model = $ objectManager ->create (
60
59
Authenticate::class,
61
60
[
Original file line number Diff line number Diff line change 9
9
namespace Magento \TwoFactorAuth \Test \Integration \Model \Provider \Engine \DuoSecurity ;
10
10
11
11
use Magento \Framework \App \ObjectManager ;
12
- use Magento \TwoFactorAuth \Api \Data \DuoDataInterface ;
13
12
use Magento \TwoFactorAuth \Api \TfaInterface ;
14
13
use Magento \TwoFactorAuth \Api \UserConfigTokenManagerInterface ;
15
14
use Magento \TwoFactorAuth \Model \Provider \Engine \DuoSecurity ;
@@ -57,10 +56,10 @@ class ConfigureTest extends TestCase
57
56
protected function setUp (): void
58
57
{
59
58
$ objectManager = ObjectManager::getInstance ();
60
- $ this ->userFactory = $ objectManager ->get (UserFactory::class);
61
59
$ this ->tokenManager = $ objectManager ->get (UserConfigTokenManagerInterface::class);
62
60
$ this ->tfa = $ objectManager ->get (TfaInterface::class);
63
61
$ this ->duo = $ this ->createMock (DuoSecurity::class);
62
+ $ this ->userFactory = $ objectManager ->get (UserFactory::class);
64
63
$ this ->authenticate = $ this ->createMock (Authenticate::class);
65
64
$ this ->model = $ objectManager ->create (
66
65
Configure::class,
You can’t perform that action at this time.
0 commit comments