/**
  * @expectedException \Buddy\Exceptions\BuddyResponseException
  * @expectedExceptionMessage Invalid client_id
  */
 public function testGetAccessTokenWithRedirectUrl()
 {
     $_GET = [];
     $_GET['state'] = 'state';
     $_GET['code'] = 'code';
     $app = new Buddy(['clientId' => 'clientId', 'clientSecret' => 'secret']);
     $app->getOAuth()->getAccessToken('state', 'http://12.0.0.1');
 }
예제 #2
0
 public function testInstantiating()
 {
     $buddy = new Buddy();
     $this->assertInstanceOf('Buddy\\BuddyOAuth', $buddy->getOAuth());
 }