diff -u b/config/optional/monitoring.sensor_config.core_cron_safe_threshold.yml b/config/optional/monitoring.sensor_config.core_cron_safe_threshold.yml --- b/config/optional/monitoring.sensor_config.core_cron_safe_threshold.yml +++ b/config/optional/monitoring.sensor_config.core_cron_safe_threshold.yml @@ -14 +14 @@ - - + - automated_cron diff -u b/src/Tests/MonitoringUITest.php b/src/Tests/MonitoringUITest.php --- b/src/Tests/MonitoringUITest.php +++ b/src/Tests/MonitoringUITest.php @@ -16,7 +16,7 @@ */ class MonitoringUITest extends MonitoringTestBase { - public static $modules = array('dblog', 'node', 'views', 'file'); + public static $modules = array('dblog', 'node', 'views', 'file', 'automated_cron'); /** * {@inheritdoc} @@ -25,6 +25,9 @@ parent::setUp(); // Create the content type page in the setup as it is used by several tests. $this->drupalCreateContentType(array('type' => 'page')); + + // Enable the core_cron_safe_threshold sensor. + monitoring_sensor_manager()->enableSensor('core_cron_safe_threshold'); } /** @@ -266,9 +269,6 @@ $this->drupalGet('admin/config/system/monitoring/sensors/ui_test_sensor_config'); $this->assertOptionSelected('edit-value-type', 'bool'); - // Enable the core_cron_safe_threshold sensor. - $this->installModules(array('automated_cron')); - monitoring_sensor_manager()->enableSensor('core_cron_safe_threshold'); // Try to enable a sensor which is disabled by default and vice versa. // Check the default status of cron safe threshold and new users sensors. $sensor_cron = SensorConfig::load('core_cron_safe_threshold');