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); }
/** * * @return Bridge_Api_Youtube */ public function reconnect() { parent::reconnect(); $this->set_transport_authentication_params(); return $this; }
/** * @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); }
/** * * @return Bridge_Api_Flickr */ public function disconnect() { parent::disconnect(); $this->_api->setAuthToken(null); return $this; }