mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-23 23:49:53 +01:00
Fix test
This commit is contained in:
parent
ad8db3ae3b
commit
8bd1615aea
@ -198,7 +198,7 @@ public function test_migrate_from_gauth_returns_correct_accounts()
|
||||
*/
|
||||
public function test_migrate_from_gauth_returns_flagged_duplicates()
|
||||
{
|
||||
$this->actingAs($this->user);
|
||||
$this->actingAs($this->user, 'api-guard');
|
||||
|
||||
$parameters = [
|
||||
'service' => OtpTestData::SERVICE,
|
||||
@ -210,14 +210,13 @@ public function test_migrate_from_gauth_returns_flagged_duplicates()
|
||||
'algorithm' => OtpTestData::ALGORITHM_DEFAULT,
|
||||
'period' => OtpTestData::PERIOD_DEFAULT,
|
||||
];
|
||||
$twofaccount = new TwoFAccount;
|
||||
$twofaccount->fillWithOtpParameters($parameters)->save();
|
||||
|
||||
TwoFAccount::factory()->for($this->user)->create($parameters);
|
||||
|
||||
$parameters['service'] = OtpTestData::SERVICE . '_bis';
|
||||
$parameters['account'] = OtpTestData::ACCOUNT . '_bis';
|
||||
|
||||
$twofaccount = new TwoFAccount;
|
||||
$twofaccount->fillWithOtpParameters($parameters)->save();
|
||||
TwoFAccount::factory()->for($this->user)->create($parameters);
|
||||
|
||||
$twofaccounts = TwoFAccounts::migrate(MigrationTestData::GOOGLE_AUTH_MIGRATION_URI);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user