function ViewStyleHtmlListTest::setUp

Overrides ViewTestBase::setUp

File

core/modules/views/tests/src/Functional/ViewStyleHtmlListTest.php, line 34

Class

ViewStyleHtmlListTest
Tests the View HTML List style.

Namespace

Drupal\Tests\views\Functional

Code

protected function setUp($import_test_views = TRUE, $modules = [
    'views_test_config',
]) : void {
    parent::setUp($import_test_views, $modules);
    $this->enableViewsTestModule();
    $this->drupalCreateContentType([
        'type' => 'page',
    ]);
    for ($i = 1; $i < 10; $i++) {
        $this->drupalCreateNode([
            'title' => 'Node ' . $i,
        ]);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.