The Trigger content (node) actions test fails when the auto-increment increment is any value other than 1 or when the auto-increment offset is not 0.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pdrake’s picture

Status: Active » Needs review
FileSize
1.23 KB
RobLoach’s picture

Status: Needs review » Reviewed & tested by the community
+++ b/modules/trigger/trigger.testundefined
@@ -114,10 +114,10 @@ class TriggerContentTestCase extends TriggerWebTestCase {
     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'));

This is much cleaner.

David_Rothstein’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.