From d5cf244e15400d62738114c6d77cfac0676cefcf Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Thu, 6 Feb 2020 16:08:54 +0100 Subject: [PATCH] Fix unit test --- tests/Unit/TwoFAccountTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Unit/TwoFAccountTest.php b/tests/Unit/TwoFAccountTest.php index 7f346762..22eb5c04 100644 --- a/tests/Unit/TwoFAccountTest.php +++ b/tests/Unit/TwoFAccountTest.php @@ -140,7 +140,7 @@ class TwoFAccountTest extends TestCase ]); $response = $this->actingAs($this->user, 'api') - ->json('GET', '/api/twofaccounts/' . $twofaccount->id . '/otp') + ->json('POST', '/api/twofaccounts/otp', ['data' => $twofaccount->id]) ->assertStatus(200) ->assertJsonStructure([ 'otp',