File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 18
18
19
19
class GoogleActivateTest extends WebapiAbstract
20
20
{
21
- const SERVICE_VERSION = 'V1 ' ;
22
- const SERVICE_NAME = 'twoFactorAuthGoogleConfigureV1 ' ;
23
- const OPERATION = 'Activate ' ;
24
- const RESOURCE_PATH = '/V1/tfa/provider/google/activate ' ;
21
+ public const SERVICE_VERSION = 'V1 ' ;
22
+ public const SERVICE_NAME = 'twoFactorAuthGoogleConfigureV1 ' ;
23
+ public const OPERATION = 'Activate ' ;
24
+ public const RESOURCE_PATH = '/V1/tfa/provider/google/activate ' ;
25
25
26
26
/**
27
27
* @var UserFactory
@@ -129,7 +129,7 @@ public function testAlreadyActivatedProvider()
129
129
/**
130
130
* @magentoConfigFixture twofactorauth/general/force_providers google
131
131
* @magentoApiDataFixture Magento/User/_files/user_with_custom_role.php
132
- * @magentoConfigFixture twofactorauth/google/otp_window 120
132
+ * @magentoConfigFixture twofactorauth/google/otp_window 20
133
133
*/
134
134
public function testActivate ()
135
135
{
Original file line number Diff line number Diff line change 22
22
23
23
/**
24
24
* Class checks google authentication behaviour
25
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
25
26
*/
26
27
class GoogleAuthenticateTest extends WebapiAbstract
27
28
{
28
- const SERVICE_VERSION = 'V1 ' ;
29
- const SERVICE_NAME = 'twoFactorAuthGoogleAuthenticateV1 ' ;
30
- const OPERATION = 'CreateAdminAccessToken ' ;
31
- const RESOURCE_PATH = '/V1/tfa/provider/google/authenticate ' ;
29
+ public const SERVICE_VERSION = 'V1 ' ;
30
+ public const SERVICE_NAME = 'twoFactorAuthGoogleAuthenticateV1 ' ;
31
+ public const OPERATION = 'CreateAdminAccessToken ' ;
32
+ public const RESOURCE_PATH = '/V1/tfa/provider/google/authenticate ' ;
32
33
33
34
/**
34
35
* @var UserFactory
@@ -222,7 +223,7 @@ public function testNotConfiguredProvider(): void
222
223
/**
223
224
* @magentoConfigFixture twofactorauth/general/force_providers google
224
225
* @magentoApiDataFixture Magento/User/_files/user_with_custom_role.php
225
- * @magentoConfigFixture twofactorauth/google/otp_window 120
226
+ * @magentoConfigFixture twofactorauth/google/otp_window 20
226
227
*
227
228
* @return void
228
229
*/
Original file line number Diff line number Diff line change 13
13
"magento/module-user" : " *" ,
14
14
"magento/module-integration" : " *" ,
15
15
"christian-riesen/base32" : " ^1.3" ,
16
- "spomky-labs/otphp" : " ^10.0 " ,
16
+ "spomky-labs/otphp" : " ^11.2 " ,
17
17
"endroid/qr-code" : " ^4.3.5" ,
18
18
"2tvenom/cborencode" : " ^1.0"
19
19
},
You can’t perform that action at this time.
0 commit comments