From 3d64cb5ecae7c0d093e1343f87901769dc7d819e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 12 Jun 2009 08:39:40 +0000 Subject: - Patch #372743 by bjaspan, yched, KarenS, catch et al: node body and teasers as fields. Oh, my. --- modules/php/php.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/php') diff --git a/modules/php/php.test b/modules/php/php.test index 1d6d317f4..441563e3a 100644 --- a/modules/php/php.test +++ b/modules/php/php.test @@ -23,7 +23,7 @@ class PHPTestCase extends DrupalWebTestCase { * @return stdObject Node object. */ function createNodeWithCode() { - return $this->drupalCreateNode(array('body' => '')); + return $this->drupalCreateNode(array('body' => array('value' => ''))); } } @@ -60,7 +60,7 @@ class PHPFilterTestCase extends PHPTestCase { // Change filter to PHP filter and see that PHP code is evaluated. $edit = array(); - $edit['body_format'] = 3; + $edit['body[0][value_format]'] = 3; $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); $this->assertRaw(t('Page %title has been updated.', array('%title' => $node->title)), t('PHP code filter turned on.')); -- cgit v1.2.3