function SyslogUpdateTest::testSyslogSettingsFacilityDataType
Tests that syslog.settings.facility has been converted from string to int.
See also
File
-
core/
modules/ syslog/ tests/ src/ Functional/ Update/ SyslogUpdateTest.php, line 29
Class
- SyslogUpdateTest
- Tests that syslog settings are properly updated during database updates.
Namespace
Drupal\Tests\syslog\Functional\UpdateCode
public function testSyslogSettingsFacilityDataType() {
$config = $this->config('syslog.settings');
$this->assertIdentical('128', $config->get('facility'));
// Run updates.
$this->runUpdates();
$config = $this->config('syslog.settings');
$this->assertIdentical(128, $config->get('facility'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.