diff options
Diffstat (limited to 'modules/php/php.test')
-rw-r--r-- | modules/php/php.test | 4 |
1 files changed, 2 insertions, 2 deletions
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' => '<?php print "SimpleTest PHP was executed!"; ?>')); + return $this->drupalCreateNode(array('body' => array('value' => '<?php print "SimpleTest PHP was executed!"; ?>'))); } } @@ -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.')); |