mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 05:54:34 +02:00
Update tests & minor fixes
This commit is contained in:
@ -3,6 +3,8 @@
|
||||
namespace Tests\Classes;
|
||||
|
||||
use Illuminate\Http\Testing\File;
|
||||
use Tests\Data\MigrationTestData;
|
||||
use Tests\Data\OtpTestData;
|
||||
|
||||
class LocalFileFactory
|
||||
{
|
||||
@ -58,7 +60,7 @@ class LocalFileFactory
|
||||
return new File('validAegisMigration.json', tap(tmpfile(), function ($temp) {
|
||||
ob_start();
|
||||
|
||||
echo OtpTestData::AEGIS_JSON_MIGRATION_PAYLOAD;
|
||||
echo MigrationTestData::VALID_AEGIS_JSON_MIGRATION_PAYLOAD;
|
||||
|
||||
fwrite($temp, ob_get_clean());
|
||||
}));
|
||||
@ -74,7 +76,7 @@ class LocalFileFactory
|
||||
return new File('invalidAegisMigration.json', tap(tmpfile(), function ($temp) {
|
||||
ob_start();
|
||||
|
||||
echo OtpTestData::INVALID_AEGIS_JSON_MIGRATION_PAYLOAD;
|
||||
echo MigrationTestData::INVALID_AEGIS_JSON_MIGRATION_PAYLOAD;
|
||||
|
||||
fwrite($temp, ob_get_clean());
|
||||
}));
|
||||
@ -90,7 +92,7 @@ class LocalFileFactory
|
||||
return new File('encryptedAegisJsonFile.txt', tap(tmpfile(), function ($temp) {
|
||||
ob_start();
|
||||
|
||||
echo OtpTestData::ENCRYPTED_AEGIS_JSON_MIGRATION_PAYLOAD;
|
||||
echo MigrationTestData::ENCRYPTED_AEGIS_JSON_MIGRATION_PAYLOAD;
|
||||
|
||||
fwrite($temp, ob_get_clean());
|
||||
}));
|
||||
|
Reference in New Issue
Block a user