Fix getOfficialIcons being ignored & Add relevant tests - Fix #194

This commit is contained in:
Bubka
2023-06-07 16:24:06 +02:00
parent d4d1eb5276
commit d902e3ecae
4 changed files with 65 additions and 22 deletions

View File

@ -7,7 +7,6 @@ use App\Exceptions\InvalidMigrationDataException;
use App\Exceptions\UnsupportedMigrationException;
use App\Factories\MigratorFactory;
use App\Models\TwoFAccount;
use App\Services\LogoService;
use App\Services\Migrators\AegisMigrator;
use App\Services\Migrators\GoogleAuthMigrator;
use App\Services\Migrators\Migrator;
@ -74,12 +73,6 @@ class MigratorTest extends TestCase
->andReturn(false);
});
$this->mock(LogoService::class, function (MockInterface $logoService) {
$logoService->allows([
'getIcon' => null,
]);
});
$this->totpTwofaccount = new TwoFAccount;
$this->totpTwofaccount->legacy_uri = OtpTestData::TOTP_FULL_CUSTOM_URI_NO_IMG;
$this->totpTwofaccount->service = OtpTestData::SERVICE;