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

merge-requests/26/head
Dries Buytaert 2008-08-02 05:07:58 +00:00
parent 135937eb03
commit 0bbad33af5
1 changed files with 7 additions and 1 deletions

View File

@ -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.'));