summaryrefslogtreecommitdiff
path: root/modules/trigger
diff options
context:
space:
mode:
Diffstat (limited to 'modules/trigger')
-rw-r--r--modules/trigger/trigger.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/trigger/trigger.test b/modules/trigger/trigger.test
index 9bf1e5b01..5096dd805 100644
--- a/modules/trigger/trigger.test
+++ b/modules/trigger/trigger.test
@@ -38,14 +38,14 @@ class TriggerContentTestCase extends DrupalWebTestCase {
$this->drupalLogin($web_user);
$edit = array();
$langcode = LANGUAGE_NONE;
- $edit["title[$langcode][0][value]"] = '!SimpleTest test node! ' . $this->randomName(10);
+ $edit["title"] = '!SimpleTest test node! ' . $this->randomName(10);
$edit["body[$langcode][0][value]"] = '!SimpleTest test body! ' . $this->randomName(32) . ' ' . $this->randomName(32);
$edit[$info['property']] = !$info['expected'];
$this->drupalPost('node/add/page', $edit, t('Save'));
// Make sure the text we want appears.
- $this->assertRaw(t('!post %title has been created.', array('!post' => 'Page', '%title' => $edit["title[$langcode][0][value]"])), t('Make sure the page has actually been created'));
+ $this->assertRaw(t('!post %title has been created.', array('!post' => 'Page', '%title' => $edit["title"])), t('Make sure the page has actually been created'));
// Action should have been fired.
- $loaded_node = $this->drupalGetNodeByTitle($edit["title[$langcode][0][value]"]);;
+ $loaded_node = $this->drupalGetNodeByTitle($edit["title"]);;
$this->assertTrue($loaded_node->$info['property'] == $info['expected'], t('Make sure the @action action fired.', array('@action' => $info['name'])));
// Leave action assigned for next test