MigrateDblogConfigsTest.php

Same filename in this branch
  1. 9 core/modules/dblog/tests/src/Kernel/Migrate/d6/MigrateDblogConfigsTest.php
Same filename in other branches
  1. 8.9.x core/modules/dblog/tests/src/Kernel/Migrate/d6/MigrateDblogConfigsTest.php
  2. 8.9.x core/modules/dblog/tests/src/Kernel/Migrate/d7/MigrateDblogConfigsTest.php
  3. 10 core/modules/dblog/tests/src/Kernel/Migrate/d6/MigrateDblogConfigsTest.php
  4. 10 core/modules/dblog/tests/src/Kernel/Migrate/d7/MigrateDblogConfigsTest.php
  5. 11.x core/modules/dblog/tests/src/Kernel/Migrate/d6/MigrateDblogConfigsTest.php
  6. 11.x core/modules/dblog/tests/src/Kernel/Migrate/d7/MigrateDblogConfigsTest.php

Namespace

Drupal\Tests\dblog\Kernel\Migrate\d7

File

core/modules/dblog/tests/src/Kernel/Migrate/d7/MigrateDblogConfigsTest.php

View source
<?php

namespace Drupal\Tests\dblog\Kernel\Migrate\d7;

use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;

/**
 * Upgrade variables to dblog.settings.yml.
 *
 * @group migrate_drupal_7
 */
class MigrateDblogConfigsTest extends MigrateDrupal7TestBase {
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'dblog',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->installConfig(static::$modules);
        $this->executeMigration('d7_dblog_settings');
    }
    
    /**
     * Tests migration of dblog variables to dblog.settings.yml.
     */
    public function testDblogSettings() {
        $config = $this->config('dblog.settings');
        $this->assertSame(10000, $config->get('row_limit'));
    }

}

Classes

Title Deprecated Summary
MigrateDblogConfigsTest Upgrade variables to dblog.settings.yml.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.