function NodeFeedTestCase::testNodeFeedExtraChannelElements

7.x node.test NodeFeedTestCase::testNodeFeedExtraChannelElements()

Ensures that node_feed() accepts and prints extra channel elements.

File

drupal-7.x/modules/node/node.test, line 1892
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);
}