protected function BookRelationshipTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/book/tests/src/Functional/Views/BookRelationshipTest.php \Drupal\Tests\book\Functional\Views\BookRelationshipTest::setUp()
- 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\ViewsCode
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',
]);
}