From 340a8b1767aab70fe678fee160322843708d1783 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Fri, 14 Oct 2022 14:01:01 +0200 Subject: [PATCH] Fix API tests not returning the secret key --- tests/Api/v1/Controllers/TwoFAccountControllerTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Api/v1/Controllers/TwoFAccountControllerTest.php b/tests/Api/v1/Controllers/TwoFAccountControllerTest.php index 9de3d645..1933a65e 100644 --- a/tests/Api/v1/Controllers/TwoFAccountControllerTest.php +++ b/tests/Api/v1/Controllers/TwoFAccountControllerTest.php @@ -463,6 +463,7 @@ class TwoFAccountControllerTest extends FeatureTestCase $response = $this->actingAs($this->user, 'api-guard') ->json('POST', '/api/v1/twofaccounts/migration', [ 'payload' => OtpTestData::GOOGLE_AUTH_MIGRATION_URI, + 'withSecret' => 1, ]) ->assertOk() ->assertJsonCount(2, $key = null) @@ -561,6 +562,7 @@ class TwoFAccountControllerTest extends FeatureTestCase ->actingAs($this->user, 'api-guard') ->json('POST', '/api/v1/twofaccounts/migration', [ 'file' => $file, + 'withSecret' => 1, ]) ->assertOk() ->assertJsonCount(5, $key = null) @@ -665,6 +667,7 @@ class TwoFAccountControllerTest extends FeatureTestCase ->actingAs($this->user, 'api-guard') ->json('POST', '/api/v1/twofaccounts/migration', [ 'file' => $file, + 'withSecret' => 1, ]) ->assertOk() ->assertJsonCount(3, $key = null)