diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-22 14:19:25 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-22 14:19:25 +0000 |
commit | cf7cb6b65caae39a2491db8732148d717a21db1f (patch) | |
tree | 1ef2683e5dc13866072c73e135cbaeb8cbfa2176 /modules | |
parent | ddddbb89a66f03c1abb22d038d6f5176299c6f46 (diff) | |
download | brdo-cf7cb6b65caae39a2491db8732148d717a21db1f.tar.gz brdo-cf7cb6b65caae39a2491db8732148d717a21db1f.tar.bz2 |
- Patch #635094 by plach: switching from zxx to und as it is semantically more correct.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/menu/menu.test | 5 | ||||
-rw-r--r-- | modules/node/tests/node_test_exception.module | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/modules/menu/menu.test b/modules/menu/menu.test index 15fc84534..4396b4953 100644 --- a/modules/menu/menu.test +++ b/modules/menu/menu.test @@ -555,9 +555,10 @@ class MenuNodeTestCase extends DrupalWebTestCase { // Create a node. $node_title = $this->randomName(); + $language = LANGUAGE_NONE; $edit = array( - 'title[zxx][0][value]' => $node_title, - 'body[zxx][0][value]' => $this->randomString(), + "title[$language][0][value]" => $node_title, + "body[$language][0][value]" => $this->randomString(), ); $this->drupalPost('node/add/page', $edit, t('Save')); $node = $this->drupalGetNodeByTitle($node_title); diff --git a/modules/node/tests/node_test_exception.module b/modules/node/tests/node_test_exception.module index a8191a58c..c7edc8f24 100644 --- a/modules/node/tests/node_test_exception.module +++ b/modules/node/tests/node_test_exception.module @@ -11,7 +11,7 @@ * Implements hook_node_insert(). */ function node_test_exception_node_insert($node) { - if ($node->title['zxx'][0]['value'] == 'testing_transaction_exception') { + if ($node->title[LANGUAGE_NONE][0]['value'] == 'testing_transaction_exception') { throw new Exception('Test exception for rollback.'); } } |