You are here

protected function MigrateBookTest::setUp in Drupal 9

Same name in this branch
  1. 9 core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookTest.php \Drupal\Tests\book\Kernel\Migrate\d6\MigrateBookTest::setUp()
  2. 9 core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookTest.php \Drupal\Tests\book\Kernel\Migrate\d7\MigrateBookTest::setUp()
Same name and namespace in other branches
  1. 8 core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookTest.php \Drupal\Tests\book\Kernel\Migrate\d6\MigrateBookTest::setUp()

Overrides MigrateDrupal6TestBase::setUp

File

core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookTest.php, line 23

Class

MigrateBookTest
Upgrade book structure.

Namespace

Drupal\Tests\book\Kernel\Migrate\d6

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installSchema('book', [
    'book',
  ]);
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->migrateContent();
  $this
    ->executeMigrations([
    'd6_node',
    'd6_book',
  ]);
}