public function MigrateBookConfigsTest::testBookSettings in Drupal 10
Same name in this branch
- 10 core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookConfigsTest.php \Drupal\Tests\book\Kernel\Migrate\d6\MigrateBookConfigsTest::testBookSettings()
- 10 core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookConfigsTest.php \Drupal\Tests\book\Kernel\Migrate\d7\MigrateBookConfigsTest::testBookSettings()
Same name and namespace in other branches
- 8 core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookConfigsTest.php \Drupal\Tests\book\Kernel\Migrate\d6\MigrateBookConfigsTest::testBookSettings()
- 9 core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookConfigsTest.php \Drupal\Tests\book\Kernel\Migrate\d6\MigrateBookConfigsTest::testBookSettings()
Tests migration of book variables to book.settings.yml.
@dataProvider providerBookSettings
File
- core/
modules/ book/ tests/ src/ Kernel/ Migrate/ d6/ MigrateBookConfigsTest.php, line 43
Class
- MigrateBookConfigsTest
- Upgrade variables to book.settings.yml.
Namespace
Drupal\Tests\book\Kernel\Migrate\d6Code
public function testBookSettings($migration_id) {
$this
->executeMigration($migration_id);
$config = $this
->config('book.settings');
$this
->assertSame('book', $config
->get('child_type'));
$this
->assertSame('book pages', $config
->get('block.navigation.mode'));
$this
->assertSame([
'book',
], $config
->get('allowed_types'));
$this
->assertConfigSchema(\Drupal::service('config.typed'), 'book.settings', $config
->get());
}