Skip to content

Commit fc2f09a

Browse files
committed
Change namespace to appease static tests
1 parent a1103d1 commit fc2f09a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

TwoFactorAuth/Plugin/BypassTwoFactorAuthForTestFramework.php renamed to TwoFactorAuth/TestFramework/Plugin/BypassTwoFactorAuth.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
declare(strict_types=1);
88

9-
namespace Magento\TwoFactorAuth\Plugin;
9+
namespace Magento\TwoFactorAuth\TestFramework\Plugin;
1010

1111
use Closure;
1212
use Magento\Backend\App\AbstractAction;
@@ -17,7 +17,7 @@
1717
/**
1818
* Plugin that allows integration controller tests that are not aware of 2FA to run.
1919
*/
20-
class BypassTwoFactorAuthForTestFramework
20+
class BypassTwoFactorAuth
2121
{
2222
public function aroundExecute(
2323
ControllerActionPredispatch $subject,

TwoFactorAuth/etc/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
</type>
8888

8989
<type name="Magento\TwoFactorAuth\Observer\ControllerActionPredispatch">
90-
<plugin name="bypass_twofactorauth_testframework" type="Magento\TwoFactorAuth\Plugin\BypassTwoFactorAuthForTestFramework" />
90+
<plugin name="bypass_twofactorauth_testframework" type="Magento\TwoFactorAuth\TestFramework\Plugin\BypassTwoFactorAuth" />
9191
</type>
9292

9393
<virtualType name="Magento\TwoFactorAuth\Model\Provider\Google" type="Magento\TwoFactorAuth\Model\Provider">

0 commit comments

Comments
 (0)