protected function KernelTestBase::setUp in XML sitemap 8
Same name and namespace in other branches
- 2.x 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\KernelCode
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');
}