MigrateUpdateConfigsTest.php in Zircon Profile 8
File
core/modules/update/src/Tests/Migrate/d6/MigrateUpdateConfigsTest.php
View source
<?php
namespace Drupal\update\Tests\Migrate\d6;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
class MigrateUpdateConfigsTest extends MigrateDrupal6TestBase {
use SchemaCheckTestTrait;
public static $modules = array(
'update',
);
protected function setUp() {
parent::setUp();
$this
->executeMigration('update_settings');
}
public function testUpdateSettings() {
$config = $this
->config('update.settings');
$this
->assertIdentical(2, $config
->get('fetch.max_attempts'));
$this
->assertIdentical('http://updates.drupal.org/release-history', $config
->get('fetch.url'));
$this
->assertIdentical('all', $config
->get('notification.threshold'));
$this
->assertIdentical(array(), $config
->get('notification.emails'));
$this
->assertIdentical(7, $config
->get('check.interval_days'));
$this
->assertConfigSchema(\Drupal::service('config.typed'), 'update.settings', $config
->get());
}
}