You are here

protected function SimplesitemapTest::setUp in Simple XML sitemap 8

Implements setup().

Overrides WebTestBase::setUp

File

src/Tests/SimplesitemapTest.php, line 33
Contains \Drupal\simplesitemap\Tests\SimplesitemapTest

Class

SimplesitemapTest
Tests Simple XML sitemap integration.

Namespace

Drupal\simplesitemap\Tests

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'page',
  ]);
  $this
    ->config('simplesitemap.settings')
    ->set('entity_types', [
    'node_type' => [
      'page' => [
        'index' => 1,
        'priority' => '0.5',
      ],
    ],
  ])
    ->save();
}