only in patch2: unchanged: --- a/src/Tests/MonitoringUITest.php +++ b/src/Tests/MonitoringUITest.php @@ -256,8 +256,8 @@ class MonitoringUITest extends MonitoringTestBase { 'value_label' => 'Test Value', 'caching_time' => 100, 'value_type' => 'bool', - 'settings[key]' => 'threshold.autorun', - 'settings[config]' => 'system.cron', + 'settings[key]' => 'interval', + 'settings[config]' => 'automated_cron.settings', ), t('Save')); $this->assertText(SafeMarkup::format('Sensor @label saved.', array('@label' => 'UI created Sensor config'))); @@ -266,6 +266,9 @@ class MonitoringUITest extends MonitoringTestBase { $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');