mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-14 15:58:36 +02:00
Complete exception handler tests
This commit is contained in:
@ -4,6 +4,7 @@ namespace Tests\Unit\Exceptions;
|
||||
|
||||
use App\Exceptions\DbEncryptionException;
|
||||
use App\Exceptions\EncryptedMigrationException;
|
||||
use App\Exceptions\FailedIconStoreDatabaseTogglingException;
|
||||
use App\Exceptions\Handler;
|
||||
use App\Exceptions\InvalidMigrationDataException;
|
||||
use App\Exceptions\InvalidOtpParameterException;
|
||||
@ -53,6 +54,18 @@ class HandlerTest extends TestCase
|
||||
public static function provideExceptionsforBadRequest() : array
|
||||
{
|
||||
return [
|
||||
[
|
||||
DbEncryptionException::class,
|
||||
],
|
||||
[
|
||||
EncryptedMigrationException::class,
|
||||
],
|
||||
[
|
||||
FailedIconStoreDatabaseTogglingException::class,
|
||||
],
|
||||
[
|
||||
InvalidMigrationDataException::class,
|
||||
],
|
||||
[
|
||||
InvalidOtpParameterException::class,
|
||||
],
|
||||
@ -62,12 +75,6 @@ class HandlerTest extends TestCase
|
||||
[
|
||||
InvalidSecretException::class,
|
||||
],
|
||||
[
|
||||
DbEncryptionException::class,
|
||||
],
|
||||
[
|
||||
InvalidMigrationDataException::class,
|
||||
],
|
||||
[
|
||||
UndecipherableException::class,
|
||||
],
|
||||
@ -77,9 +84,6 @@ class HandlerTest extends TestCase
|
||||
[
|
||||
UnsupportedOtpTypeException::class,
|
||||
],
|
||||
[
|
||||
EncryptedMigrationException::class,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user