Error message
You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).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.