function DisplayTest::setUp
Overrides ViewTestBase::setUp
File
-
core/
modules/ views/ tests/ src/ Functional/ Plugin/ DisplayTest.php, line 36
Class
- DisplayTest
- Tests the basic display plugin.
Namespace
Drupal\Tests\views\Functional\PluginCode
protected function setUp($import_test_views = TRUE) {
parent::setUp();
$this->enableViewsTestModule();
$this->adminUser = $this->drupalCreateUser([
'administer views',
]);
$this->drupalLogin($this->adminUser);
// Create 10 nodes.
for ($i = 0; $i <= 10; $i++) {
$this->drupalCreateNode([
'promote' => TRUE,
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.