You are here

protected function ViewsAggregatorStyleTableUnitTest::prepareView in Views Aggregator Plus 8

Prepares a view executable by initializing everything which is needed.

Parameters

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

1 call to ViewsAggregatorStyleTableUnitTest::prepareView()
ViewsAggregatorStyleTableUnitTest::testViewsAggregatorTable in tests/src/Kernel/Plugin/ViewsAggregatorStyleTableUnitTest.php
Tests the Views Aggregator table style.

File

tests/src/Kernel/Plugin/ViewsAggregatorStyleTableUnitTest.php, line 175

Class

ViewsAggregatorStyleTableUnitTest
Tests the Views Aggregator table style plugin.

Namespace

Drupal\Tests\views_aggregator\Kernel\Plugin

Code

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