You are here

protected function BookRelationshipTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/book/tests/src/Functional/Views/BookRelationshipTest.php \Drupal\Tests\book\Functional\Views\BookRelationshipTest::setUp()
  2. 10 core/modules/book/tests/src/Functional/Views/BookRelationshipTest.php \Drupal\Tests\book\Functional\Views\BookRelationshipTest::setUp()

Overrides ViewTestBase::setUp

File

core/modules/book/tests/src/Functional/Views/BookRelationshipTest.php, line 53

Class

BookRelationshipTest
Tests entity reference relationship data.

Namespace

Drupal\Tests\book\Functional\Views

Code

protected function setUp($import_test_views = TRUE) {
  parent::setUp($import_test_views);

  // Create users.
  $this->bookAuthor = $this
    ->drupalCreateUser([
    'create new books',
    'create book content',
    'edit own book content',
    'add content to books',
  ]);
  ViewTestData::createTestViews(get_class($this), [
    'book_test_views',
  ]);
}