function MigrateBookConfigsTest::testBookSettings

Same name in this branch
  1. 10 core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookConfigsTest.php \Drupal\Tests\book\Kernel\Migrate\d6\MigrateBookConfigsTest::testBookSettings()
Same name in other branches
  1. 9 core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookConfigsTest.php \Drupal\Tests\book\Kernel\Migrate\d6\MigrateBookConfigsTest::testBookSettings()
  2. 9 core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookConfigsTest.php \Drupal\Tests\book\Kernel\Migrate\d7\MigrateBookConfigsTest::testBookSettings()
  3. 8.9.x core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookConfigsTest.php \Drupal\Tests\book\Kernel\Migrate\d6\MigrateBookConfigsTest::testBookSettings()
  4. 8.9.x core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookConfigsTest.php \Drupal\Tests\book\Kernel\Migrate\d7\MigrateBookConfigsTest::testBookSettings()
  5. 11.x core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookConfigsTest.php \Drupal\Tests\book\Kernel\Migrate\d6\MigrateBookConfigsTest::testBookSettings()
  6. 11.x core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookConfigsTest.php \Drupal\Tests\book\Kernel\Migrate\d7\MigrateBookConfigsTest::testBookSettings()

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

File

core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookConfigsTest.php, line 43

Class

MigrateBookConfigsTest
Tests the migration of Book settings.

Namespace

Drupal\Tests\book\Kernel\Migrate\d7

Code

public function testBookSettings() : void {
    $config = $this->config('book.settings');
    $this->assertSame('book', $config->get('child_type'));
    $this->assertSame('all pages', $config->get('block.navigation.mode'));
    $this->assertSame([
        'book',
    ], $config->get('allowed_types'));
    $this->assertConfigSchema(\Drupal::service('config.typed'), 'book.settings', $config->get());
}

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