function ViewsKernelTestBase::executeView
Same name and namespace in other branches
- 11.x core/modules/views/tests/src/Kernel/ViewsKernelTestBase.php \Drupal\Tests\views\Kernel\ViewsKernelTestBase::executeView()
- 10 core/modules/views/tests/src/Kernel/ViewsKernelTestBase.php \Drupal\Tests\views\Kernel\ViewsKernelTestBase::executeView()
- 8.9.x core/modules/views/tests/src/Kernel/ViewsKernelTestBase.php \Drupal\Tests\views\Kernel\ViewsKernelTestBase::executeView()
Executes a view.
Parameters
\Drupal\views\ViewExecutable $view: The view object.
array $args: (optional) An array of the view arguments to use for the view.
6 calls to ViewsKernelTestBase::executeView()
- AreaMessagesTest::testMessageText in core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaMessagesTest.php - Tests the messages area handler.
- AreaTitleTest::testTitleText in core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaTitleTest.php - Tests the title area handler.
- FilterLanguageTest::testFilter in core/
modules/ language/ tests/ src/ Kernel/ Views/ FilterLanguageTest.php - Tests the language filter.
- RelationshipUserImageDataTest::testViewsHandlerRelationshipUserImageData in core/
modules/ image/ tests/ src/ Kernel/ Views/ RelationshipUserImageDataTest.php - Tests using the views image relationship.
- TaxonomyTermArgumentDepthTest::assertTermWithDepthResult in core/
modules/ taxonomy/ tests/ src/ Kernel/ Views/ TaxonomyTermArgumentDepthTest.php - Asserts the result of the view for the given arguments.
File
-
core/
modules/ views/ tests/ src/ Kernel/ ViewsKernelTestBase.php, line 124
Class
- ViewsKernelTestBase
- Defines a base class for Views kernel testing.
Namespace
Drupal\Tests\views\KernelCode
protected function executeView($view, array $args = []) {
$view->setDisplay();
$view->preExecute($args);
$view->execute();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.