function ViewTestBase::executeView
Same name and namespace in other branches
- 8.9.x core/modules/views/src/Tests/ViewTestBase.php \Drupal\views\Tests\ViewTestBase::executeView()
- 11.x core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::executeView()
- 10 core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::executeView()
- 8.9.x core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::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.
29 calls to ViewTestBase::executeView()
- ArgumentDefaultTest::testArgumentDefaultPlugin in core/
modules/ views/ tests/ src/ Functional/ Plugin/ ArgumentDefaultTest.php - Tests the argument default test plugin.
- DefaultViewsTest::testArchiveView in core/
modules/ views/ tests/ src/ Functional/ DefaultViewsTest.php - Tests the archive view.
- DisplayEntityReferenceTest::testEntityReferenceDisplay in core/
modules/ views/ tests/ src/ Functional/ Plugin/ DisplayEntityReferenceTest.php - Tests the entity reference display plugin.
- DisplayTest::testOutputIsEmpty in core/
modules/ views/ tests/ src/ Functional/ Plugin/ DisplayTest.php - Tests the outputIsEmpty method on the display.
- DisplayTest::testReadMoreCustomURL in core/
modules/ views/ tests/ src/ Functional/ Plugin/ DisplayTest.php - Tests the readmore with custom URL.
File
-
core/
modules/ views/ tests/ src/ Functional/ ViewTestBase.php, line 130
Class
- ViewTestBase
- Defines a base class for Views testing in the full web test environment.
Namespace
Drupal\Tests\views\FunctionalCode
protected function executeView(ViewExecutable $view, $args = []) {
// A view does not really work outside of a request scope, due to many
// dependencies like the current user.
$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.