Skip to content

Commit 7f6a642

Browse files
Merge branch 'develop' into cia-pre-release-develop-sync-02162024
2 parents 00d06c5 + bc4f9c9 commit 7f6a642

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

TwoFactorAuth/Test/Api/GoogleActivateTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818

1919
class GoogleActivateTest extends WebapiAbstract
2020
{
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';
2525

2626
/**
2727
* @var UserFactory
@@ -129,7 +129,7 @@ public function testAlreadyActivatedProvider()
129129
/**
130130
* @magentoConfigFixture twofactorauth/general/force_providers google
131131
* @magentoApiDataFixture Magento/User/_files/user_with_custom_role.php
132-
* @magentoConfigFixture twofactorauth/google/otp_window 120
132+
* @magentoConfigFixture twofactorauth/google/otp_window 20
133133
*/
134134
public function testActivate()
135135
{

TwoFactorAuth/Test/Api/GoogleAuthenticateTest.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@
2222

2323
/**
2424
* Class checks google authentication behaviour
25+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2526
*/
2627
class GoogleAuthenticateTest extends WebapiAbstract
2728
{
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';
3233

3334
/**
3435
* @var UserFactory
@@ -222,7 +223,7 @@ public function testNotConfiguredProvider(): void
222223
/**
223224
* @magentoConfigFixture twofactorauth/general/force_providers google
224225
* @magentoApiDataFixture Magento/User/_files/user_with_custom_role.php
225-
* @magentoConfigFixture twofactorauth/google/otp_window 120
226+
* @magentoConfigFixture twofactorauth/google/otp_window 20
226227
*
227228
* @return void
228229
*/

TwoFactorAuth/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"magento/module-user": "*",
1414
"magento/module-integration": "*",
1515
"christian-riesen/base32": "^1.3",
16-
"spomky-labs/otphp": "^10.0",
16+
"spomky-labs/otphp": "^11.2",
1717
"endroid/qr-code": "^4.3.5",
1818
"2tvenom/cborencode": "^1.0"
1919
},

0 commit comments

Comments
 (0)