function BookBreadcrumbTest::setUp
Overrides BrowserTestBase::setUp
File
-
core/
modules/ book/ tests/ src/ Functional/ BookBreadcrumbTest.php, line 53
Class
- BookBreadcrumbTest
- Create a book, add pages, and test book interface.
Namespace
Drupal\Tests\book\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->drupalPlaceBlock('system_breadcrumb_block');
$this->drupalPlaceBlock('page_title_block');
// Create users.
$this->bookAuthor = $this->drupalCreateUser([
'create new books',
'create book content',
'edit own book content',
'add content to books',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.