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 1818
1919class 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 {
Original file line number Diff line number Diff line change 2222
2323/**
2424 * Class checks google authentication behaviour
25+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2526 */
2627class 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 */
Original file line number Diff line number Diff line change 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 },
You can’t perform that action at this time.
0 commit comments