39ac01e82a3562e30cf4e03fd184f4e9b40a3186
[yaffs-website] / web / core / modules / syslog / tests / src / Functional / Update / SyslogUpdateTest.php
1 <?php
2
3 namespace Drupal\Tests\syslog\Functional\Update;
4
5 use Drupal\FunctionalTests\Update\UpdatePathTestBase;
6
7 /**
8  * Tests that syslog settings are properly updated during database updates.
9  *
10  * @group syslog
11  * @group legacy
12  */
13 class SyslogUpdateTest extends UpdatePathTestBase {
14
15   /**
16    * {@inheritdoc}
17    */
18   protected function setDatabaseDumpFiles() {
19     $this->databaseDumpFiles = [
20       __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.filled.standard.php.gz',
21     ];
22   }
23
24   /**
25    * Tests that syslog.settings.facility has been converted from string to int.
26    *
27    * @see syslog_update_8400()
28    */
29   public function testSyslogSettingsFacilityDataType() {
30     $config = $this->config('syslog.settings');
31     $this->assertIdentical('128', $config->get('facility'));
32
33     // Run updates.
34     $this->runUpdates();
35
36     $config = $this->config('syslog.settings');
37     $this->assertIdentical(128, $config->get('facility'));
38   }
39
40 }