mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-26 15:01:54 +02:00
Fix API tests not returning the secret key
This commit is contained in:
parent
f9dcac80cb
commit
340a8b1767
@ -463,6 +463,7 @@ class TwoFAccountControllerTest extends FeatureTestCase
|
|||||||
$response = $this->actingAs($this->user, 'api-guard')
|
$response = $this->actingAs($this->user, 'api-guard')
|
||||||
->json('POST', '/api/v1/twofaccounts/migration', [
|
->json('POST', '/api/v1/twofaccounts/migration', [
|
||||||
'payload' => OtpTestData::GOOGLE_AUTH_MIGRATION_URI,
|
'payload' => OtpTestData::GOOGLE_AUTH_MIGRATION_URI,
|
||||||
|
'withSecret' => 1,
|
||||||
])
|
])
|
||||||
->assertOk()
|
->assertOk()
|
||||||
->assertJsonCount(2, $key = null)
|
->assertJsonCount(2, $key = null)
|
||||||
@ -561,6 +562,7 @@ class TwoFAccountControllerTest extends FeatureTestCase
|
|||||||
->actingAs($this->user, 'api-guard')
|
->actingAs($this->user, 'api-guard')
|
||||||
->json('POST', '/api/v1/twofaccounts/migration', [
|
->json('POST', '/api/v1/twofaccounts/migration', [
|
||||||
'file' => $file,
|
'file' => $file,
|
||||||
|
'withSecret' => 1,
|
||||||
])
|
])
|
||||||
->assertOk()
|
->assertOk()
|
||||||
->assertJsonCount(5, $key = null)
|
->assertJsonCount(5, $key = null)
|
||||||
@ -665,6 +667,7 @@ class TwoFAccountControllerTest extends FeatureTestCase
|
|||||||
->actingAs($this->user, 'api-guard')
|
->actingAs($this->user, 'api-guard')
|
||||||
->json('POST', '/api/v1/twofaccounts/migration', [
|
->json('POST', '/api/v1/twofaccounts/migration', [
|
||||||
'file' => $file,
|
'file' => $file,
|
||||||
|
'withSecret' => 1,
|
||||||
])
|
])
|
||||||
->assertOk()
|
->assertOk()
|
||||||
->assertJsonCount(3, $key = null)
|
->assertJsonCount(3, $key = null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user