Security update for Core, with self-updated composer
[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  */
12 class SyslogUpdateTest extends UpdatePathTestBase {
13
14   /**
15    * {@inheritdoc}
16    */
17   protected function setDatabaseDumpFiles() {
18     $this->databaseDumpFiles = [
19       __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.filled.standard.php.gz',
20     ];
21   }
22
23   /**
24    * Tests that syslog.settings.facility has been converted from string to int.
25    *
26    * @see syslog_update_8400()
27    */
28   public function testSyslogSettingsFacilityDataType() {
29     $config = $this->config('syslog.settings');
30     $this->assertIdentical('128', $config->get('facility'));
31
32     // Run updates.
33     $this->runUpdates();
34
35     $config = $this->config('syslog.settings');
36     $this->assertIdentical(128, $config->get('facility'));
37   }
38
39 }