Ejemplo n.º 1
0
 public function testTheBetaTierCanBeEnabled()
 {
     $provider = new Facebook(['graphApiVersion' => 'v0.0', 'enableBetaTier' => true]);
     $fooToken = new AccessToken(['access_token' => 'foo_token']);
     $urlAuthorize = parse_url($provider->getBaseAuthorizationUrl(), PHP_URL_HOST);
     $urlAccessToken = parse_url($provider->getBaseAccessTokenUrl([]), PHP_URL_HOST);
     $urlUserDetails = parse_url($provider->getResourceOwnerDetailsUrl($fooToken), PHP_URL_HOST);
     $this->assertEquals('www.beta.facebook.com', $urlAuthorize);
     $this->assertEquals('graph.beta.facebook.com', $urlAccessToken);
     $this->assertEquals('graph.beta.facebook.com', $urlUserDetails);
 }