From 147bb1389a18eca73015390cc46a5fe03abfcb88 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 9 Jan 2010 21:54:01 +0000 Subject: #571654 follow-up by chx, peximo, plach, sun, et al: Roll-back of node titles as fields. The Entity Translation module in contrib can add this back, but for everyone else it creates a *huge* WTF. Apologies for how late this is coming, but better now than post-alpha. :\ --- modules/trigger/trigger.test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/trigger') 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 -- cgit v1.2.3