/** * Test the modifying of a page */ public function testModifyPage() { $modified_xml = file_get_contents(dirname(__FILE__) . '/data/page_modified.xml'); $this->oauthClient->expects($this->once())->method('authenticatedPost')->with('page/f412b8a3-8b12-44bc-9a0a-c74ec0e88e98', array('name' => 'test'))->will($this->returnValue($modified_xml)); $uid = $this->pages->updatePage('f412b8a3-8b12-44bc-9a0a-c74ec0e88e98', array('name' => 'test')); // $this->assertEquals($uid, 'f412b8a3-8b12-44bc-9a0a-c74ec0e88e98'); }
/** * @see CultureFeed_Pages::updatePage() */ public function updatePage($id, array $params) { $result = $this->realCultureFeedPages->updatePage($id, $params); $this->cacheClear('page:' . $id); return $result; }