SyslogUpdateTest.php in Drupal 8
File
core/modules/syslog/tests/src/Functional/Update/SyslogUpdateTest.php
View source
<?php
namespace Drupal\Tests\syslog\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class SyslogUpdateTest extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.filled.standard.php.gz',
];
}
public function testSyslogSettingsFacilityDataType() {
$config = $this
->config('syslog.settings');
$this
->assertIdentical('128', $config
->get('facility'));
$this
->runUpdates();
$config = $this
->config('syslog.settings');
$this
->assertIdentical(128, $config
->get('facility'));
}
}
Classes
Name |
Description |
SyslogUpdateTest |
Tests that syslog settings are properly updated during database updates. |