set('plugins.PUBSUBHUB_URL', $hub);
$data['_PAGE_'] = Router::$PAGE_FEED_RSS;
$data = hook_pubsubhubbub_render_feed($data, $conf);
$expected = '';
$this->assertEquals($expected, $data['feed_plugins_header'][0]);
}
/**
* Test render_feed hook with an ATOM feed.
*/
public function testPubSubAtomRenderFeed()
{
$hub = 'http://domain.hub';
$conf = new ConfigManager(self::$configFile);
$conf->set('plugins.PUBSUBHUB_URL', $hub);
$data['_PAGE_'] = Router::$PAGE_FEED_ATOM;
$data = hook_pubsubhubbub_render_feed($data, $conf);
$expected = '';
$this->assertEquals($expected, $data['feed_plugins_header'][0]);
}
}