diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-02 19:26:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-02 19:26:23 +0000 |
commit | 0baad49d620d9988837287cb5942eea764d3ed6f (patch) | |
tree | 146072f69b433cb7922572ba2ac627a83987edd4 /modules/php | |
parent | ef4513651e210784ba84eb310cf919e26f668bed (diff) | |
download | brdo-0baad49d620d9988837287cb5942eea764d3ed6f.tar.gz brdo-0baad49d620d9988837287cb5942eea764d3ed6f.tar.bz2 |
- Patch #635094 by plach: unify 'language neutral' language codes.
Diffstat (limited to 'modules/php')
-rw-r--r-- | modules/php/php.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/php/php.test b/modules/php/php.test index 142f7a858..a70fb0ac6 100644 --- a/modules/php/php.test +++ b/modules/php/php.test @@ -30,7 +30,7 @@ class PHPTestCase extends DrupalWebTestCase { * @return stdObject Node object. */ function createNodeWithCode() { - return $this->drupalCreateNode(array('body' => array(FIELD_LANGUAGE_NONE => array(array('value' => '<?php print "SimpleTest PHP was executed!"; ?>'))))); + return $this->drupalCreateNode(array('body' => array(LANGUAGE_NONE => array(array('value' => '<?php print "SimpleTest PHP was executed!"; ?>'))))); } } @@ -64,10 +64,10 @@ class PHPFilterTestCase extends PHPTestCase { // Change filter to PHP filter and see that PHP code is evaluated. $edit = array(); - $langcode = FIELD_LANGUAGE_NONE; + $langcode = LANGUAGE_NONE; $edit["body[$langcode][0][value_format]"] = $this->php_code_format; $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); - $this->assertRaw(t('Page %title has been updated.', array('%title' => $node->title[FIELD_LANGUAGE_NONE][0]['value'])), t('PHP code filter turned on.')); + $this->assertRaw(t('Page %title has been updated.', array('%title' => $node->title[LANGUAGE_NONE][0]['value'])), t('PHP code filter turned on.')); // Make sure that the PHP code shows up as text. $this->assertNoText('print', t('PHP code isn\'t displayed.')); |