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

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

File

modules/node/tests/node.test, line 2350
Tests for node.module.

Class

NodeFeedTestCase
Test the node_feed() functionality.

Code

function testNodeFeedExtraChannelElements() {
  ob_start();
  node_feed(array(), array('copyright' => 'Copyright Silkscreen CMS.'));
  $output = ob_get_clean();

  $this->assertTrue(strpos($output, '<copyright>Copyright Silkscreen CMS.</copyright>') !== FALSE);
}