You are here

protected function XmlSitemapCustomFunctionalTest::setUp in XML sitemap 8

Same name and namespace in other branches
  1. 2.x xmlsitemap_custom/tests/src/Functional/XmlSitemapCustomFunctionalTest.php \Drupal\Tests\xmlsitemap_custom\Functional\XmlSitemapCustomFunctionalTest::setUp()

Overrides XmlSitemapTestBase::setUp

File

xmlsitemap_custom/tests/src/Functional/XmlSitemapCustomFunctionalTest.php, line 29

Class

XmlSitemapCustomFunctionalTest
Tests the functionality of xmlsitemap_custom module.

Namespace

Drupal\Tests\xmlsitemap_custom\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->aliasStorage = $this->entityTypeManager
    ->getStorage('path_alias');
  $this->admin_user = $this
    ->drupalCreateUser([
    'access content',
    'administer xmlsitemap',
  ]);
  $this
    ->drupalLogin($this->admin_user);
}