Add test to cover Provider\Microsoft::urlAuthorize()

oauth1test
Ben Ramsey 2014-11-28 15:48:35 -05:00
parent 954d043409
commit f202e423d9
1 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,14 @@ class MicrosoftTest extends \PHPUnit_Framework_TestCase
$this->assertNotNull($this->provider->state);
}
public function testUrlAuthorize()
{
$url = $this->provider->urlAuthorize();
$uri = parse_url($url);
$this->assertEquals('/oauth20_authorize.srf', $uri['path']);
}
public function testUrlAccessToken()
{
$url = $this->provider->urlAccessToken();