Definition of Drupal\node\Tests\NodeFeedTest.
<?php
/**
* @file
* Definition of Drupal\node\Tests\NodeFeedTest.
*/
namespace Drupal\node\Tests;
use Drupal\simpletest\WebTestBase;
/**
* Test the node_feed() functionality.
*/
class NodeFeedTest extends WebTestBase {
public static function getInfo() {
return array(
'name' => 'Node feed',
'description' => 'Ensures that node_feed() functions correctly.',
'group' => 'Node',
);
}
/**
* Ensures that node_feed() accepts and prints extra channel elements.
*/
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);
}
}
Name | Description |
---|---|
NodeFeedTest | Test the node_feed() functionality. |