summaryrefslogtreecommitdiff
path: root/modules/php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-12 08:39:40 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-12 08:39:40 +0000
commit3d64cb5ecae7c0d093e1343f87901769dc7d819e (patch)
tree765b3104ae2bbdf96ac677f8deab9b5457ffa4bf /modules/php
parentbfdea95337376b00e60049b640c076e8ab32293f (diff)
downloadbrdo-3d64cb5ecae7c0d093e1343f87901769dc7d819e.tar.gz
brdo-3d64cb5ecae7c0d093e1343f87901769dc7d819e.tar.bz2
- Patch #372743 by bjaspan, yched, KarenS, catch et al: node body and teasers as fields. Oh, my.
Diffstat (limited to 'modules/php')
-rw-r--r--modules/php/php.test4
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.'));