protected function StyleTableUnitTest::prepareView in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php \Drupal\Tests\views\Kernel\Plugin\StyleTableUnitTest::prepareView()
- 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\PluginCode
protected function prepareView(ViewExecutable $view) {
$view
->setDisplay();
$view
->initStyle();
$view
->initHandlers();
$view
->initQuery();
}