Fix testNodeFeedExtraChannelElements().

8.0.x
Niklas Fiekas 2012-04-28 10:39:07 +02:00
parent 4899a97a21
commit 11255cdbc1
1 changed files with 2 additions and 5 deletions

View File

@ -1781,11 +1781,8 @@ class NodeFeedTestCase extends DrupalWebTestCase {
* Ensure that node_feed accepts and prints extra channel elements.
*/
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);
$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);
}
}