function CToolsViewsBasicViewBlockTest::setUp

Same name in other branches
  1. 4.0.x modules/ctools_views/tests/src/Functional/CToolsViewsBasicViewBlockTest.php \Drupal\Tests\ctools_views\Functional\CToolsViewsBasicViewBlockTest::setUp()

Overrides UITestBase::setUp

File

modules/ctools_views/tests/src/Functional/CToolsViewsBasicViewBlockTest.php, line 57

Class

CToolsViewsBasicViewBlockTest
Tests ctools_views block display plugin overrides settings from a basic View.

Namespace

Drupal\Tests\ctools_views\Functional

Code

protected function setUp($import_test_views = TRUE, $modules = [
    'views_test_config',
]) : void {
    parent::setUp($import_test_views);
    ViewTestData::createTestViews(get_class($this), [
        'ctools_views_test_views',
    ]);
    $this->storage = $this->container
        ->get('entity_type.manager')
        ->getStorage('block');
}