You are here

protected function SitemapTestBase::setUp in Sitemap 2.0.x

Same name and namespace in other branches
  1. 8.2 src/Tests/SitemapTestBase.php \Drupal\sitemap\Tests\SitemapTestBase::setUp()

Overrides BrowserTestBase::setUp

2 calls to SitemapTestBase::setUp()
SitemapContentTest::setUp in src/Tests/SitemapContentTest.php
SitemapCssTest::setUp in src/Tests/SitemapCssTest.php
2 methods override SitemapTestBase::setUp()
SitemapContentTest::setUp in src/Tests/SitemapContentTest.php
SitemapCssTest::setUp in src/Tests/SitemapCssTest.php

File

src/Tests/SitemapTestBase.php, line 39

Class

SitemapTestBase
Tests the landing and admin pages of the sitemap.

Namespace

Drupal\sitemap\Tests

Code

protected function setUp() {
  parent::setUp();

  // Create user with admin permissions.
  $this->userAdmin = $this
    ->drupalCreateUser([
    'administer sitemap',
    'access sitemap',
  ]);

  // Create user with view permissions.
  $this->userView = $this
    ->drupalCreateUser([
    'access sitemap',
  ]);

  // Create user without any sitemap permissions.
  $this->userNoAccess = $this
    ->drupalCreateUser();
}