function BookRelationshipTest::setUp
Same name 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()
- 11.x 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',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.