protected function DisplayTest::setUp in Drupal 10
Same name in this branch
- 10 core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php \Drupal\Tests\views_ui\FunctionalJavascript\DisplayTest::setUp()
- 10 core/modules/views/tests/src/Functional/Plugin/DisplayTest.php \Drupal\Tests\views\Functional\Plugin\DisplayTest::setUp()
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Functional/Plugin/DisplayTest.php \Drupal\Tests\views\Functional\Plugin\DisplayTest::setUp()
- 9 core/modules/views/tests/src/Functional/Plugin/DisplayTest.php \Drupal\Tests\views\Functional\Plugin\DisplayTest::setUp()
File
- core/
modules/ views/ tests/ src/ Functional/ Plugin/ DisplayTest.php, line 37
Class
- DisplayTest
- Tests the basic display plugin.
Namespace
Drupal\Tests\views\Functional\PluginCode
protected function setUp($import_test_views = TRUE, $modules = [
'views_test_config',
]) : void {
parent::setUp($import_test_views, $modules);
$this
->enableViewsTestModule();
$this
->drupalLogin($this
->drupalCreateUser([
'administer views',
]));
// Create 10 nodes.
for ($i = 0; $i <= 10; $i++) {
$this
->drupalCreateNode([
'promote' => TRUE,
]);
}
}