Commit 0bbad33a authored by Dries's avatar Dries

- Patch #287695 by cwgordon7: made syslog tests work on Windows.

parent 135937eb
......@@ -28,7 +28,13 @@ class SyslogTestCase extends DrupalWebTestCase {
$this->drupalLogin($admin_user);
$edit = array();
$edit['syslog_facility'] = 176; // LOG_LOCAL6 - Local 6.
// If we're on Windows, LOG_LOCAL6 will not be available.
if (defined('LOG_LOCAL6')) {
$edit['syslog_facility'] = LOG_LOCAL6;
}
else {
$edit['syslog_facility'] = LOG_USER;
}
$this->drupalPost('admin/settings/logging/syslog', $edit, t('Save configuration'));
$this->assertText(t('The configuration options have been saved.'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment