function PromotedContentPageTest::setUp
File
-
core/
modules/ node/ tests/ src/ Functional/ Views/ PromotedContentPageTest.php, line 53
Class
- PromotedContentPageTest
- Tests the promoted content view provided with views.
Namespace
Drupal\Tests\node\Functional\ViewsCode
protected function setUp($import_test_views = TRUE, $modules = []) : void {
parent::setUp($import_test_views, $modules);
$this->nodeStorage = $this->container
->get('entity_type.manager')
->getStorage('node');
$this->enablePromotedContentView();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.