You are here

protected function KernelTestBase::setUp in XML sitemap 2.x

Same name and namespace in other branches
  1. 8 tests/src/Kernel/KernelTestBase.php \Drupal\Tests\xmlsitemap\Kernel\KernelTestBase::setUp()

Overrides KernelTestBase::setUp

2 calls to KernelTestBase::setUp()
MetatagNoIndexTest::setUp in tests/src/Kernel/MetatagNoIndexTest.php
XmlSitemapWriterTest::setUp in tests/src/Kernel/XmlSitemapWriterTest.php
2 methods override KernelTestBase::setUp()
MetatagNoIndexTest::setUp in tests/src/Kernel/MetatagNoIndexTest.php
XmlSitemapWriterTest::setUp in tests/src/Kernel/XmlSitemapWriterTest.php

File

tests/src/Kernel/KernelTestBase.php, line 34

Class

KernelTestBase
Base class for xmlsitemap kernel tests.

Namespace

Drupal\Tests\xmlsitemap\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'xmlsitemap',
  ]);
  $this
    ->installSchema('xmlsitemap', [
    'xmlsitemap',
  ]);

  // Install hooks are not run with kernel tests.
  xmlsitemap_install();
  $this
    ->assertDirectoryExists('public://xmlsitemap');
}