Commit 251ca21b authored by alexpott's avatar alexpott

Issue #2500499 by phenaproxima, bdimaggio: Migration path for dblog 7.x

parent 97ded670
id: d7_dblog_settings
label: Drupal 7 database logging configuration
migration_tags:
- Drupal 7
source:
plugin: variable
variables:
- dblog_row_limit
process:
row_limit: dblog_row_limit
destination:
plugin: config
config_name: dblog.settings
<?php
/**
* @file
* Contains \Drupal\dblog\Tests\Migrate\d7\MigrateDblogConfigsTest.
*/
namespace Drupal\dblog\Tests\Migrate\d7;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
/**
* Upgrade variables to dblog.settings.yml.
*
* @group dblog
*/
class MigrateDblogConfigsTest extends MigrateDrupal7TestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = ['dblog'];
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this->installConfig(static::$modules);
$this->loadDumps(['Variable.php']);
$this->executeMigration('d7_dblog_settings');
}
/**
* Tests migration of dblog variables to dblog.settings.yml.
*/
public function testDblogSettings() {
$config = $this->config('dblog.settings');
$this->assertIdentical(1000, $config->get('row_limit'));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment