protected function ViewsKernelTestBase::executeView in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Kernel/ViewsKernelTestBase.php \Drupal\Tests\views\Kernel\ViewsKernelTestBase::executeView()
- 9 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.
49 calls to ViewsKernelTestBase::executeView()
- ArgumentNodeRevisionIdTest::testNodeRevisionRelationship in core/
modules/ node/ tests/ src/ Kernel/ Views/ ArgumentNodeRevisionIdTest.php - Tests the node revision id argument via the node_vid handler.
- ArgumentUidRevisionTest::testArgument in core/
modules/ node/ tests/ src/ Kernel/ Views/ ArgumentUidRevisionTest.php - Tests the node_uid_revision argument.
- ArgumentValidateTest::testArgumentValidateUserName in core/
modules/ user/ tests/ src/ Kernel/ Views/ ArgumentValidateTest.php - Tests the UserName argument validator.
- ArgumentValidateTest::testArgumentValidateUserUid in core/
modules/ user/ tests/ src/ Kernel/ Views/ ArgumentValidateTest.php - Tests the User (ID) argument validator.
- CacheTest::testCacheContextIntegration in core/
modules/ views/ tests/ src/ Kernel/ Plugin/ CacheTest.php - Tests the cache context integration for views result cache.
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();
}