From 2d6053f8569eb5eb7d5726af907f2a0b99d9ac25 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 27 Aug 2009 07:18:06 +0000 Subject: - Patch #395378 by Xano: syslog module clean-up and bugfix. --- modules/syslog/syslog.test | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'modules/syslog/syslog.test') diff --git a/modules/syslog/syslog.test b/modules/syslog/syslog.test index 9818e26cb..0efd7e3ed 100644 --- a/modules/syslog/syslog.test +++ b/modules/syslog/syslog.test @@ -22,20 +22,16 @@ class SyslogTestCase extends DrupalWebTestCase { $this->drupalLogin($admin_user); $edit = array(); - // If we're on Windows, LOG_LOCAL6 will not be available. + // If we're on Windows, there is no configuration form. if (defined('LOG_LOCAL6')) { - $edit['syslog_facility'] = LOG_LOCAL6; - } - else { - $edit['syslog_facility'] = LOG_USER; - } - $this->drupalPost('admin/config/development/logging', $edit, t('Save configuration')); - $this->assertText(t('The configuration options have been saved.')); - - $this->drupalGet('admin/config/development/logging'); - if ($this->parse()) { - $field = $this->xpath('//option[@value="' . $edit['syslog_facility'] . '"]'); // Should be one field. - $this->assertTrue($field[0]['selected'] == 'selected', t('Facility value saved.')); + $this->drupalPost('admin/config/development/logging', array('syslog_facility' => LOG_LOCAL6), t('Save configuration')); + $this->assertText(t('The configuration options have been saved.')); + + $this->drupalGet('admin/config/development/logging'); + if ($this->parse()) { + $field = $this->xpath('//option[@value="' . LOG_LOCAL6 . '"]'); // Should be one field. + $this->assertTrue($field[0]['selected'] == 'selected', t('Facility value saved.')); + } } } } -- cgit v1.2.3