protected function SitemapBookTest::setUp in Sitemap 2.0.x
Same name and namespace in other branches
- 8.2 src/Tests/SitemapBookTest.php \Drupal\sitemap\Tests\SitemapBookTest::setUp()
- 8 src/Tests/SitemapBookTest.php \Drupal\sitemap\Tests\SitemapBookTest::setUp()
Overrides BrowserTestBase::setUp
File
- src/
Tests/ SitemapBookTest.php, line 38
Class
- SitemapBookTest
- Test the display of books based on sitemap settings.
Namespace
Drupal\sitemap\TestsCode
protected function setUp() {
parent::setUp();
// Create user then login.
$this->user = $this
->drupalCreateUser([
'administer sitemap',
'access sitemap',
'create book content',
'create new books',
'administer book outlines',
]);
$this
->drupalLogin($this->user);
$this->nodes = $this
->createBook();
}