1 node.test NodeFeedTestCase::testNodeFeedExtraChannelElements()

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

File

core/modules/node/tests/node.test, line 2646
Tests for node.module.

Class

NodeFeedTestCase
Test the node_feed() functionality.

Code

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

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