Project

General

Profile

Revision b0dc3a2e

Added by Julien Enselme over 7 years ago

Update to Drupal 7.52

View differences:

drupal7/modules/trigger/trigger.test
85 85
      $this->assertRaw(t('!post %title has been created.', array('!post' => 'Basic page', '%title' => $edit["title"])), 'Make sure the Basic page has actually been created');
86 86
      // Action should have been fired.
87 87
      $loaded_node = $this->drupalGetNodeByTitle($edit["title"]);
88
      $this->assertTrue($loaded_node->$info['property'] == $info['expected'], format_string('Make sure the @action action fired.', array('@action' => $info['name'])));
88
      $this->assertTrue($loaded_node->{$info['property']} == $info['expected'], format_string('Make sure the @action action fired.', array('@action' => $info['name'])));
89 89
      // Leave action assigned for next test
90 90

  
91 91
      // There should be an error when the action is assigned to the trigger

Also available in: Unified diff