Преглед на файлове

Fix min 5 digits in tests

Bubka преди 3 години
родител
ревизия
fec900d651
променени са 2 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 2 2
      tests/Api/v1/Requests/TwoFAccountStoreRequestTest.php
  2. 4 4
      tests/Api/v1/Requests/TwoFAccountUpdateRequestTest.php

+ 2 - 2
tests/Api/v1/Requests/TwoFAccountStoreRequestTest.php

@@ -60,7 +60,7 @@ class TwoFAccountStoreRequestTest extends TestCase
                 'icon' => 'icon.png',
                 'icon' => 'icon.png',
                 'otp_type' => 'hotp',
                 'otp_type' => 'hotp',
                 'secret' => 'A4GRFHZVRBGY7UIW',
                 'secret' => 'A4GRFHZVRBGY7UIW',
-                'digits' => 6,
+                'digits' => 8,
                 'algorithm' => 'sha1',
                 'algorithm' => 'sha1',
                 'counter' => 10,
                 'counter' => 10,
             ]],
             ]],
@@ -143,7 +143,7 @@ class TwoFAccountStoreRequestTest extends TestCase
             [[
             [[
                 'account' => 'MyAccount',
                 'account' => 'MyAccount',
                 'otp_type' => 'totp',
                 'otp_type' => 'totp',
-                'digits' => 5,
+                'digits' => 4,
             ]],
             ]],
             [[
             [[
                 'account' => 'MyAccount',
                 'account' => 'MyAccount',

+ 4 - 4
tests/Api/v1/Requests/TwoFAccountUpdateRequestTest.php

@@ -60,7 +60,7 @@ class TwoFAccountUpdateRequestTest extends TestCase
                 'icon' => 'icon.png',
                 'icon' => 'icon.png',
                 'otp_type' => 'hotp',
                 'otp_type' => 'hotp',
                 'secret' => 'A4GRFHZVRBGY7UIW',
                 'secret' => 'A4GRFHZVRBGY7UIW',
-                'digits' => 6,
+                'digits' => 8,
                 'algorithm' => 'sha1',
                 'algorithm' => 'sha1',
                 'counter' => 10,
                 'counter' => 10,
             ]],
             ]],
@@ -70,7 +70,7 @@ class TwoFAccountUpdateRequestTest extends TestCase
                 'icon' => null,
                 'icon' => null,
                 'otp_type' => 'hotp',
                 'otp_type' => 'hotp',
                 'secret' => 'A4GRFHZVRBGY7UIW',
                 'secret' => 'A4GRFHZVRBGY7UIW',
-                'digits' => 6,
+                'digits' => 10,
                 'algorithm' => 'sha1',
                 'algorithm' => 'sha1',
                 'period' => null,
                 'period' => null,
                 'counter' => 15,
                 'counter' => 15,
@@ -145,7 +145,7 @@ class TwoFAccountUpdateRequestTest extends TestCase
                 'icon' => null,
                 'icon' => null,
                 'otp_type' => 'totp',
                 'otp_type' => 'totp',
                 'secret' => 'A4GRFHZVRBGY7UIW',
                 'secret' => 'A4GRFHZVRBGY7UIW',
-                'digits' => 5,
+                'digits' => 4,
                 'algorithm' => 'sha1',
                 'algorithm' => 'sha1',
                 'period' => null,
                 'period' => null,
                 'counter' => 15,
                 'counter' => 15,
@@ -189,7 +189,7 @@ class TwoFAccountUpdateRequestTest extends TestCase
                 'icon' => null,
                 'icon' => null,
                 'otp_type' => 'totp',
                 'otp_type' => 'totp',
                 'secret' => 'A4GRFHZVRBGY7UIW',
                 'secret' => 'A4GRFHZVRBGY7UIW',
-                'digits' => 5,
+                'digits' => 4,
                 'algorithm' => 'sha1',
                 'algorithm' => 'sha1',
                 'period' => null,
                 'period' => null,
                 'counter' => -1,
                 'counter' => -1,