You are here

protected function BookTest::setUp in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/book/src/Tests/BookTest.php \Drupal\book\Tests\BookTest::setUp()
  2. 8 core/modules/book/tests/src/Unit/Plugin/migrate/source/d6/BookTest.php \Drupal\Tests\book\Unit\Plugin\migrate\source\d6\BookTest::setUp()
Same name and namespace in other branches
  1. 8.0 core/modules/book/tests/src/Unit/Plugin/migrate/source/d6/BookTest.php \Drupal\Tests\book\Unit\Plugin\migrate\source\d6\BookTest::setUp()

Overrides MigrateSqlSourceTestCase::setUp

File

core/modules/book/tests/src/Unit/Plugin/migrate/source/d6/BookTest.php, line 50
Contains \Drupal\Tests\book\Unit\Plugin\migrate\source\d6\BookTest.

Class

BookTest
@coversDefaultClass \Drupal\book\Plugin\migrate\source\d6\Book @group book

Namespace

Drupal\Tests\book\Unit\Plugin\migrate\source\d6

Code

protected function setUp() {
  $this->databaseContents['book'] = array(
    array(
      'mlid' => '1',
      'nid' => '4',
      'bid' => '4',
    ),
  );
  $this->databaseContents['menu_links'] = array(
    array(
      'menu_name' => 'book-toc-1',
      'mlid' => '1',
      'plid' => '0',
      'link_path' => 'node/4',
      'router_path' => 'node/%',
      'link_title' => 'Test top book title',
      'options' => 'a:0:{}',
      'module' => 'book',
      'hidden' => '0',
      'external' => '0',
      'has_children' => '1',
      'expanded' => '0',
      'weight' => '-10',
      'depth' => '1',
      'customized' => '0',
      'p1' => '1',
      'p2' => '0',
      'p3' => '0',
      'p4' => '0',
      'p5' => '0',
      'p6' => '0',
      'p7' => '0',
      'p8' => '0',
      'p9' => '0',
      'updated' => '0',
    ),
  );
  parent::setUp();
}