Skip to content

Commit

Permalink
Fix bugs found by Travis CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrencegf committed May 25, 2017
1 parent 45a6b4d commit ce7fbda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/src/Provider/CILogonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function testAuthorizationUrl()

public function testScopes()
{
$options = ['scope' => [uniqid(),uniqid()]];
$options = ['scope' => [uniqid()]];

$url = $this->provider->getAuthorizationUrl($options);

Expand Down Expand Up @@ -93,7 +93,7 @@ public function testGetAccessToken()
]);

$this->assertEquals('mock_access_token', $token->getToken());
$this->assertGreaterThanOrEqual(time(), $token->getExpires());
$this->assertGreaterThanOrEqual(time(), (int)$token->getExpires());
$this->assertEquals('mock_refresh_token', $token->getRefreshToken());
$this->assertNull($token->getResourceOwnerId());
}
Expand Down Expand Up @@ -148,7 +148,7 @@ public function testUserData()
$this->assertEquals($idp, $user->getIdP());
$this->assertEquals($idp, $user->toArray()['idp']);
$this->assertEquals($idpname, $user->getIdPName());
$this->assertEquals($idpname, $user->toArray()['idpn_name']);
$this->assertEquals($idpname, $user->toArray()['idp_name']);
$this->assertEquals($ou, $user->getOU());
$this->assertEquals($ou, $user->toArray()['ou']);
$this->assertEquals($affiliation, $user->getAffiliation());
Expand Down

0 comments on commit ce7fbda

Please sign in to comment.