Skip to content

Commit

Permalink
Query string is encoded
Browse files Browse the repository at this point in the history
  • Loading branch information
robinvdvleuten committed Jun 17, 2016
1 parent 819f7b6 commit 21373b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/AuthApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ public function testAuthorize() {

$authorize_url = $api->get_authorize_link('code', 'http://lala.com');

$this->assertEquals("https://dummy.auth0.com/authorize?response_type=code&redirect_uri=http://lala.com&client_id=123456", $authorize_url);
$this->assertEquals("https://dummy.auth0.com/authorize?response_type=code&redirect_uri=http%3A%2F%2Flala.com&client_id=123456", $authorize_url);

$authorize_url2 = $api->get_authorize_link('token', 'http://lala.com', 'facebook', 'dastate');

$this->assertEquals("https://dummy.auth0.com/authorize?response_type=token&redirect_uri=http://lala.com&client_id=123456&connection=facebook&state=dastate", $authorize_url2);
$this->assertEquals("https://dummy.auth0.com/authorize?response_type=token&redirect_uri=http%3A%2F%2Flala.com&client_id=123456&connection=facebook&state=dastate", $authorize_url2);
}

public function testAuthorizeWithRO() {
Expand Down

0 comments on commit 21373b8

Please sign in to comment.