Skip to content

Commit 36c55fc

Browse files
authored
Add checkURL into fixture for test (#437)
1 parent 71e893b commit 36c55fc

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

test/Verify2/ClientTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,11 +423,13 @@ public function testCanRequestSilentAuth(): void
423423
$this->assertEquals('POST', $request->getMethod());
424424

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

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

433435
public function testCannotSendConcurrentVerifications(): void
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"request_id": "c11236f4-00bf-4b89-84ba-88b25df97315",
3+
"check_url": "https://api.nexmo.com/v2/verify/c11236f4-00bf-4b89-84ba-88b25df97315/silent-auth/redirect"
4+
}

0 commit comments

Comments
 (0)