You are here

protected function GridStackViewsTest::setUp in GridStack 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/Views/GridStackViewsTest.php \Drupal\Tests\gridstack\Kernel\Views\GridStackViewsTest::setUp()

File

tests/src/Kernel/Views/GridStackViewsTest.php, line 50

Class

GridStackViewsTest
Test GridStack Views integration.

Namespace

Drupal\Tests\gridstack\Kernel\Views

Code

protected function setUp($import_test_views = TRUE) {
  parent::setUp($import_test_views);
  $this
    ->installConfig([
    'field',
    'node',
    'views',
    'blazy',
    'gridstack',
  ]);
  $this->gridstackManager = $this->container
    ->get('gridstack.manager');
  $bundle = $this->bundle;
  $this
    ->setUpContentTypeTest($bundle);
  $data['settings'] = $this
    ->getFormatterSettings();
  $this->display = $this
    ->setUpFormatterDisplay($bundle, $data);
  $this
    ->setUpContentWithItems($bundle);
}