diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-08-27 07:18:06 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-08-27 07:18:06 +0000 |
commit | 2d6053f8569eb5eb7d5726af907f2a0b99d9ac25 (patch) | |
tree | 2ceb64ffd04498c286609c16b965a70d97a74279 /modules/syslog/syslog.test | |
parent | 0259ee968ffa4db893e57a80931aaf9f8ae69e5e (diff) | |
download | brdo-2d6053f8569eb5eb7d5726af907f2a0b99d9ac25.tar.gz brdo-2d6053f8569eb5eb7d5726af907f2a0b99d9ac25.tar.bz2 |
- Patch #395378 by Xano: syslog module clean-up and bugfix.
Diffstat (limited to 'modules/syslog/syslog.test')
-rw-r--r-- | modules/syslog/syslog.test | 22 |
1 files changed, 9 insertions, 13 deletions
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.')); + } } } } |