From fec900d651234a56ff2b208870050416c7fc9ab1 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Thu, 7 Jul 2022 13:47:26 +0200 Subject: [PATCH] Fix min 5 digits in tests --- tests/Api/v1/Requests/TwoFAccountStoreRequestTest.php | 4 ++-- tests/Api/v1/Requests/TwoFAccountUpdateRequestTest.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Api/v1/Requests/TwoFAccountStoreRequestTest.php b/tests/Api/v1/Requests/TwoFAccountStoreRequestTest.php index 92c39922..0d3002d5 100644 --- a/tests/Api/v1/Requests/TwoFAccountStoreRequestTest.php +++ b/tests/Api/v1/Requests/TwoFAccountStoreRequestTest.php @@ -60,7 +60,7 @@ public function provideValidData() : array 'icon' => 'icon.png', 'otp_type' => 'hotp', 'secret' => 'A4GRFHZVRBGY7UIW', - 'digits' => 6, + 'digits' => 8, 'algorithm' => 'sha1', 'counter' => 10, ]], @@ -143,7 +143,7 @@ public function provideInvalidData() : array [[ 'account' => 'MyAccount', 'otp_type' => 'totp', - 'digits' => 5, + 'digits' => 4, ]], [[ 'account' => 'MyAccount', diff --git a/tests/Api/v1/Requests/TwoFAccountUpdateRequestTest.php b/tests/Api/v1/Requests/TwoFAccountUpdateRequestTest.php index a16f0819..eb4040af 100644 --- a/tests/Api/v1/Requests/TwoFAccountUpdateRequestTest.php +++ b/tests/Api/v1/Requests/TwoFAccountUpdateRequestTest.php @@ -60,7 +60,7 @@ public function provideValidData() : array 'icon' => 'icon.png', 'otp_type' => 'hotp', 'secret' => 'A4GRFHZVRBGY7UIW', - 'digits' => 6, + 'digits' => 8, 'algorithm' => 'sha1', 'counter' => 10, ]], @@ -70,7 +70,7 @@ public function provideValidData() : array 'icon' => null, 'otp_type' => 'hotp', 'secret' => 'A4GRFHZVRBGY7UIW', - 'digits' => 6, + 'digits' => 10, 'algorithm' => 'sha1', 'period' => null, 'counter' => 15, @@ -145,7 +145,7 @@ public function provideInvalidData() : array 'icon' => null, 'otp_type' => 'totp', 'secret' => 'A4GRFHZVRBGY7UIW', - 'digits' => 5, + 'digits' => 4, 'algorithm' => 'sha1', 'period' => null, 'counter' => 15, @@ -189,7 +189,7 @@ public function provideInvalidData() : array 'icon' => null, 'otp_type' => 'totp', 'secret' => 'A4GRFHZVRBGY7UIW', - 'digits' => 5, + 'digits' => 4, 'algorithm' => 'sha1', 'period' => null, 'counter' => -1,