protected function BookRelationshipTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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) : void {
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(static::class, [
'book_test_views',
]);
}