Example #1
0
 public function testGet_auth_url()
 {
     $this->auth->expects($this->once())->method('get_auth_url')->with($this->isType(PHPUnit_Framework_Constraint_IsType::TYPE_ARRAY))->will($this->returnValue("une url"));
     $return = $this->bridgeApi->get_auth_url();
     $this->assertEquals("une url", $return);
 }
Example #2
0
 /**
  *
  * @return Bridge_Api_Youtube
  */
 public function reconnect()
 {
     parent::reconnect();
     $this->set_transport_authentication_params();
     return $this;
 }
Example #3
0
 /**
  * @Override get_auth_url
  * @param  type $supp_params
  * @return type
  */
 public function get_auth_url($supp_params = [])
 {
     $params = array_merge(['display' => 'popup', 'scope' => 'read write delete manage_playlists'], $supp_params);
     return parent::get_auth_url($params);
 }
Example #4
0
 /**
  *
  * @return Bridge_Api_Flickr
  */
 public function disconnect()
 {
     parent::disconnect();
     $this->_api->setAuthToken(null);
     return $this;
 }