function MigrateUpdateConfigsTest::testUpdateSettings

Same name in other branches
  1. 9 core/modules/update/tests/src/Kernel/Migrate/d6/MigrateUpdateConfigsTest.php \Drupal\Tests\update\Kernel\Migrate\d6\MigrateUpdateConfigsTest::testUpdateSettings()
  2. 10 core/modules/update/tests/src/Kernel/Migrate/d6/MigrateUpdateConfigsTest.php \Drupal\Tests\update\Kernel\Migrate\d6\MigrateUpdateConfigsTest::testUpdateSettings()
  3. 11.x core/modules/update/tests/src/Kernel/Migrate/d6/MigrateUpdateConfigsTest.php \Drupal\Tests\update\Kernel\Migrate\d6\MigrateUpdateConfigsTest::testUpdateSettings()

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

File

core/modules/update/tests/src/Kernel/Migrate/d6/MigrateUpdateConfigsTest.php, line 33

Class

MigrateUpdateConfigsTest
Upgrade variables to update.settings.yml.

Namespace

Drupal\Tests\update\Kernel\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([], $config->get('notification.emails'));
    $this->assertIdentical(7, $config->get('check.interval_days'));
    $this->assertConfigSchema(\Drupal::service('config.typed'), 'update.settings', $config->get());
}

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