You are here

protected function SitemapBookTest::setUp in Sitemap 8.2

Same name and namespace in other branches
  1. 8 src/Tests/SitemapBookTest.php \Drupal\sitemap\Tests\SitemapBookTest::setUp()
  2. 2.0.x 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\Tests

Code

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();
}