function NodeFeedTest::testNodeFeedExtraChannelElements

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

File

drupal/core/modules/node/lib/Drupal/node/Tests/NodeFeedTest.php, line 27
Definition of Drupal\node\Tests\NodeFeedTest.

Class

NodeFeedTest
Test the node_feed() functionality.

Namespace

Drupal\node\Tests

Code

function testNodeFeedExtraChannelElements() {
  $response = node_feed(array(), array(
    'copyright' => 'Drupal is a registered trademark of Dries Buytaert.',
  ));
  $this
    ->assertTrue(strpos($response
    ->getContent(), '<copyright>Drupal is a registered trademark of Dries Buytaert.</copyright>') !== FALSE);
}