Skip to content

Commit 874f99d

Browse files
committed
AC-10982::[2FA] Integrate with Duo Web SDK to support Universal Prompt-fixes for static issues
1 parent 180c646 commit 874f99d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

TwoFactorAuth/Test/Integration/Model/Provider/Engine/DuoSecurity/AuthenticateTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
use Magento\Framework\App\ObjectManager;
1212
use Magento\TestFramework\Bootstrap;
13-
use Magento\TwoFactorAuth\Api\Data\DuoDataInterface;
1413
use Magento\TwoFactorAuth\Api\TfaInterface;
1514
use Magento\TwoFactorAuth\Api\UserConfigTokenManagerInterface;
1615
use 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
[

TwoFactorAuth/Test/Integration/Model/Provider/Engine/DuoSecurity/ConfigureTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
namespace Magento\TwoFactorAuth\Test\Integration\Model\Provider\Engine\DuoSecurity;
1010

1111
use Magento\Framework\App\ObjectManager;
12-
use Magento\TwoFactorAuth\Api\Data\DuoDataInterface;
1312
use Magento\TwoFactorAuth\Api\TfaInterface;
1413
use Magento\TwoFactorAuth\Api\UserConfigTokenManagerInterface;
1514
use 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,

0 commit comments

Comments
 (0)