Skip to content

Commit

Permalink
Merge branch 'main' of github.com:vormkracht10/oauth2-genesys
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Oct 12, 2022
2 parents 9782c80 + f4804dc commit 7bb80b3
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions tests/GenesysTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

use Mockery;
use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
use League\OAuth2\Client\Token\AccessToken;
use Mockery;
use Vormkracht10\OAuth2Genesys\Provider\Genesys;
use League\OAuth2\Client\Provider\Exception\IdentityProviderException;

class GenesysTest extends \PHPUnit\Framework\TestCase
{
Expand All @@ -19,12 +19,12 @@ protected static function getMethod($name)
return $method;
}

protected function setUp(): void
protected function setUp(): void
{
$this->provider = new Genesys([
'clientId' => 'mock_client_id',
'clientSecret' => 'mock_secret',
'redirectUri' => 'none',
'clientId' => 'mock_client_id',
'clientSecret' => 'mock_secret',
'redirectUri' => 'none',
]);
}

Expand Down Expand Up @@ -113,7 +113,7 @@ public function testUserData()

$token = $this->provider->getAccessToken('authorization_code', ['code' => 'mock_authorization_code']);
$user = $this->provider->getResourceOwner($token);

$this->assertEquals($response_data['id'], $user->getId());
}

Expand All @@ -140,6 +140,5 @@ public function testExceptionThrownWhenErrorObjectReceived()
$this->expectException(IdentityProviderException::class);

$this->provider->getAccessToken('authorization_code', ['code' => 'mock_authorization_code']);

}
}
}

0 comments on commit 7bb80b3

Please sign in to comment.