Version 1
[yaffs-website] / web / core / modules / syslog / tests / src / Kernel / Migrate / d6 / MigrateSyslogConfigsTest.php
1 <?php
2
3 namespace Drupal\Tests\syslog\Kernel\Migrate\d6;
4
5 use Drupal\Tests\SchemaCheckTestTrait;
6 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
7
8 /**
9  * Upgrade variables to syslog.settings.yml.
10  *
11  * @group migrate_drupal_6
12  */
13 class MigrateSyslogConfigsTest extends MigrateDrupal6TestBase {
14
15   use SchemaCheckTestTrait;
16
17   /**
18    * {@inheritdoc}
19    */
20   public static $modules = ['syslog'];
21
22   /**
23    * {@inheritdoc}
24    */
25   protected function setUp() {
26     parent::setUp();
27     $this->executeMigration('d6_syslog_settings');
28   }
29
30   /**
31    * Tests migration of syslog variables to syslog.settings.yml.
32    */
33   public function testSyslogSettings() {
34     $config = $this->config('syslog.settings');
35     $this->assertIdentical('drupal', $config->get('identity'));
36     $this->assertIdentical('128', $config->get('facility'));
37     $this->assertConfigSchema(\Drupal::service('config.typed'), 'syslog.settings', $config->get());
38   }
39
40 }