Skip to content

Commit

Permalink
Add checkURL into fixture for test (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
SecondeJK authored Oct 2, 2023
1 parent 71e893b commit 36c55fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/Verify2/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,13 @@ public function testCanRequestSilentAuth(): void
$this->assertEquals('POST', $request->getMethod());

return true;
}))->willReturn($this->getResponse('verify-request-success', 202));
}))->willReturn($this->getResponse('verify-silent-auth-request-success', 202));

$result = $this->verify2Client->startVerification($silentAuthRequest);
$this->assertIsArray($result);
$this->assertArrayHasKey('request_id', $result);
$this->assertArrayHasKey('check_url', $result);
$this->assertEquals('https://api.nexmo.com/v2/verify/c11236f4-00bf-4b89-84ba-88b25df97315/silent-auth/redirect', $result['check_url']);
}

public function testCannotSendConcurrentVerifications(): void
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"request_id": "c11236f4-00bf-4b89-84ba-88b25df97315",
"check_url": "https://api.nexmo.com/v2/verify/c11236f4-00bf-4b89-84ba-88b25df97315/silent-auth/redirect"
}

0 comments on commit 36c55fc

Please sign in to comment.