You are here

public function MigrateUpdateConfigsTest::testUpdateSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/update/src/Tests/Migrate/d6/MigrateUpdateConfigsTest.php \Drupal\update\Tests\Migrate\d6\MigrateUpdateConfigsTest::testUpdateSettings()

Tests migration of update variables to update.settings.yml.

File

core/modules/update/src/Tests/Migrate/d6/MigrateUpdateConfigsTest.php, line 38
Contains \Drupal\update\Tests\Migrate\d6\MigrateUpdateConfigsTest.

Class

MigrateUpdateConfigsTest
Upgrade variables to update.settings.yml.

Namespace

Drupal\update\Tests\Migrate\d6

Code

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());
}