diff -u b/src/Tests/MonitoringUITest.php b/src/Tests/MonitoringUITest.php --- b/src/Tests/MonitoringUITest.php +++ b/src/Tests/MonitoringUITest.php @@ -96,6 +96,7 @@ 'type' => 'article', )); $this->drupalGet('admin/config/system/monitoring/sensors/add'); + $this->assertFieldByName('status', TRUE); // Test creation of Node entity aggregator sensor. @@ -1063,14 +1064,19 @@ /** * Add verbose fields to the sensor creation form. + * + * @param array $fields + * Fields of an entity type to be added to the form. + * @param array $edit + * Field data in an associative array. */ - public function addFields($fields = array(), $array = array()) { + public function addFields($fields = array(), $edit = array()) { $i = 2; foreach ($fields as $field) { $this->drupalPostForm(NULL, array(), t('Add another field')); $array['settings[verbose_fields][' . $i++ . ']'] = $field->getName(); } - $this->drupalPostForm(NULL, $array, t('Save')); + $this->drupalPostForm(NULL, $edit, t('Save')); } }