function NodeFeedTestCase::testNodeFeedExtraChannelElements in Drupal 7
Ensures that node_feed() accepts and prints extra channel elements.
File
- modules/
node/ node.test, line 2006 - Tests for node.module.
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);
}