function NodeFeedTestCase::testNodeFeedExtraChannelElements
Ensures that node_feed() accepts and prints extra channel elements.
File
-
modules/
node/ node.test, line 2034
Class
- NodeFeedTestCase
- Test the node_feed() functionality.
Code
function testNodeFeedExtraChannelElements() {
ob_start();
node_feed(array(), array(
'copyright' => 'Drupal is a registered trademark of Dries Buytaert.',
));
$output = ob_get_clean();
$this->assertTrue(strpos($output, '<copyright>Drupal is a registered trademark of Dries Buytaert.</copyright>') !== FALSE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.