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