/** * @dataProvider providerTestQueryByPage * */ public function testQueryByPage($pageIds, $fields, $expected) { $pages = Api_Dao_Pages::getPagesByIds($pageIds, $fields); $this->compareQueryResults($pages, $expected); }
/** * Enter description here... * * @param unknown_type $fields * @param unknown_type $loggedInUser * @param unknown_type $uid * @param unknown_type $pageIds * @return unknown */ public static function getPages($fields, $loggedInUser, $uid, $pageIds) { // The ID of the user. Defaults to the logged in user if the session_key is valid, // and no page_ids are passed. Used to get the pages a given user is a fan of. if (null == $pageIds) { if (null == $uid) { return Api_Dao_Pages::getPagesByUid($loggedInUser, $fields); } else { return Api_Dao_Pages::getPagesByUid($uid, $fields); } } else { if (null == $uid) { return Api_Dao_Pages::getPagesByIds($pageIds, $fields); } else { return Api_Dao_Pages::getPagesByUidAndPageIds($uid, $fields, $pageIds); } } }