summaryrefslogtreecommitdiff
path: root/modules/trigger
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-08-05 02:34:14 -0400
committerDavid Rothstein <drothstein@gmail.com>2013-08-05 02:34:14 -0400
commit2f322e9ba8f9b3ece0c024f0fc6c3d35198c2ee6 (patch)
tree8bbff99ae897d86c83515c1d78056794ee77495e /modules/trigger
parent410bc91123780ae828d80a554bbed2cbe03a34b3 (diff)
downloadbrdo-2f322e9ba8f9b3ece0c024f0fc6c3d35198c2ee6.tar.gz
brdo-2f322e9ba8f9b3ece0c024f0fc6c3d35198c2ee6.tar.bz2
Issue #2011822 by pdrake: Fixed Trigger content (node) actions test assumes auto-increment increment of 1.
Diffstat (limited to 'modules/trigger')
-rw-r--r--modules/trigger/trigger.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/trigger/trigger.test b/modules/trigger/trigger.test
index 829e1898b..72e0f7200 100644
--- a/modules/trigger/trigger.test
+++ b/modules/trigger/trigger.test
@@ -114,10 +114,10 @@ class TriggerContentTestCase extends TriggerWebTestCase {
// Assign an action to the node save/update trigger.
$test_user = $this->drupalCreateUser(array('administer actions', 'administer nodes', 'create page content', 'access administration pages', 'access content overview'));
$this->drupalLogin($test_user);
+ $nodes = array();
for ($index = 0; $index < 3; $index++) {
- $edit = array('title' => $this->randomName());
- $this->drupalPost('node/add/page', $edit, t('Save'));
+ $nodes[] = $this->drupalCreateNode(array('type' => 'page'));
}
$action_id = 'trigger_test_generic_any_action';
@@ -127,8 +127,8 @@ class TriggerContentTestCase extends TriggerWebTestCase {
$edit = array(
'operation' => 'unpublish',
- 'nodes[1]' => TRUE,
- 'nodes[2]' => TRUE,
+ 'nodes[' . $nodes[0]->nid . ']' => TRUE,
+ 'nodes[' . $nodes[1]->nid . ']' => TRUE,
);
$this->drupalPost('admin/content', $edit, t('Update'));
$count = variable_get('trigger_test_generic_any_action', 0);