You are here

public function MigrateBookConfigsTest::testBookSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/book/src/Tests/Migrate/d6/MigrateBookConfigsTest.php \Drupal\book\Tests\Migrate\d6\MigrateBookConfigsTest::testBookSettings()

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

File

core/modules/book/src/Tests/Migrate/d6/MigrateBookConfigsTest.php, line 38
Contains \Drupal\book\Tests\Migrate\d6\MigrateBookConfigsTest.

Class

MigrateBookConfigsTest
Upgrade variables to book.settings.yml.

Namespace

Drupal\book\Tests\Migrate\d6

Code

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