function NodeFeedTestCase::testNodeFeedExtraChannelElements
Ensures that node_feed() accepts and prints extra channel elements.
Archivo
- drupal-7.x/
modules/ node/ node.test, line 1876 - Tests for node.module.
Class
- NodeFeedTestCase
- Test the node_feed() functionality.
Código
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);
}