protected function SimpleSitemapViewsTestBase::setUp in Simple XML sitemap 8.3
Same name and namespace in other branches
- 4.x modules/simple_sitemap_views/tests/src/Functional/SimpleSitemapViewsTestBase.php \Drupal\Tests\simple_sitemap_views\Functional\SimpleSitemapViewsTestBase::setUp()
Overrides SimplesitemapTestBase::setUp
File
- modules/
simple_sitemap_views/ tests/ src/ Functional/ SimpleSitemapViewsTestBase.php, line 60
Class
- SimpleSitemapViewsTestBase
- Defines a base class for Simple XML Sitemap (Views) functional testing.
Namespace
Drupal\Tests\simple_sitemap_views\FunctionalCode
protected function setUp() {
parent::setUp();
$this->sitemapViews = $this->container
->get('simple_sitemap.views');
$this->cron = $this->container
->get('cron');
$this->sitemapVariant = 'default';
$this->testView = Views::getView('simple_sitemap_views_test_view');
$this->testView
->setDisplay('page_1');
$this->testView2 = Views::getView('simple_sitemap_views_test_view');
$this->testView2
->setDisplay('page_2');
}