public function MigrateUpdateConfigsTest::testUpdateSettings in Drupal 10
Same name and namespace in other branches
- 8 core/modules/update/tests/src/Kernel/Migrate/d6/MigrateUpdateConfigsTest.php \Drupal\Tests\update\Kernel\Migrate\d6\MigrateUpdateConfigsTest::testUpdateSettings()
- 9 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\d6Code
public function testUpdateSettings() {
$config = $this
->config('update.settings');
$this
->assertSame(2, $config
->get('fetch.max_attempts'));
$this
->assertSame('https://updates.drupal.org/release-history', $config
->get('fetch.url'));
$this
->assertSame('all', $config
->get('notification.threshold'));
$this
->assertSame([], $config
->get('notification.emails'));
$this
->assertSame(7, $config
->get('check.interval_days'));
$this
->assertConfigSchema(\Drupal::service('config.typed'), 'update.settings', $config
->get());
}