You are here

protected function StyleTableUnitTest::prepareView in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php \Drupal\Tests\views\Kernel\Plugin\StyleTableUnitTest::prepareView()
  2. 10 core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php \Drupal\Tests\views\Kernel\Plugin\StyleTableUnitTest::prepareView()

Prepares a view executable by initializing everything which is needed.

Parameters

\Drupal\views\ViewExecutable $view: The executable to prepare.

1 call to StyleTableUnitTest::prepareView()
StyleTableUnitTest::testTable in core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php
Tests the table style.

File

core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php, line 149

Class

StyleTableUnitTest
Tests the table style plugin.

Namespace

Drupal\Tests\views\Kernel\Plugin

Code

protected function prepareView(ViewExecutable $view) {
  $view
    ->setDisplay();
  $view
    ->initStyle();
  $view
    ->initHandlers();
  $view
    ->initQuery();
}