function MigrateBookTest::setUp

Same name in this branch
  1. 10 core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookTest.php \Drupal\Tests\book\Kernel\Migrate\d6\MigrateBookTest::setUp()
Same name in other branches
  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()
  3. 8.9.x core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookTest.php \Drupal\Tests\book\Kernel\Migrate\d6\MigrateBookTest::setUp()
  4. 8.9.x core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookTest.php \Drupal\Tests\book\Kernel\Migrate\d7\MigrateBookTest::setUp()
  5. 11.x core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookTest.php \Drupal\Tests\book\Kernel\Migrate\d6\MigrateBookTest::setUp()
  6. 11.x core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookTest.php \Drupal\Tests\book\Kernel\Migrate\d7\MigrateBookTest::setUp()

Overrides MigrateDrupal7TestBase::setUp

File

core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookTest.php, line 31

Class

MigrateBookTest
Tests migration of book structures from Drupal 7.

Namespace

Drupal\Tests\book\Kernel\Migrate\d7

Code

protected function setUp() : void {
    parent::setUp();
    $this->installSchema('book', [
        'book',
    ]);
    $this->installSchema('node', [
        'node_access',
    ]);
    $this->migrateUsers(FALSE);
    $this->migrateContentTypes();
    $this->executeMigrations([
        'd7_node',
        'd7_book',
    ]);
}

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