Skip to content

Commit 654c1a5

Browse files
committed
Update test to match url regardless of encoding scheme used, + vs %20.
1 parent 11156ef commit 654c1a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ public function end($handle)
618618
return new Response(200, ['Content-Type' => ['application/json']], ['access_token' => 'a token', 'expires_in' => 1]);
619619
}
620620

621-
if ($this->_request->getMethod() === 'GET' && $this->_request->getUrl() === 'baseUrl/v1/resource+name?the+name=the+value') {
621+
if ($this->_request->getMethod() === 'GET' && urldecode($this->_request->getUrl()) === 'baseUrl/v1/resource name?the name=the value') {
622622
return new Response(200, ['Content-Type' => ['application/json']], ['key' => 'value']);
623623
}
624624

0 commit comments

Comments
 (0)