You are here

protected function SitemapFrontpageTest::setUp in Sitemap 2.0.x

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

Overrides BrowserTestBase::setUp

File

src/Tests/SitemapFrontpageTest.php, line 24

Class

SitemapFrontpageTest
Tests the display of RSS links 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',
  ]);
  $this
    ->drupalLogin($this->user);
}