protected function ViewTestBase::executeView in Views (for Drupal 7) 8.3
Helper function to execute a view with debugging.
Parameters
view $view:
array $args:
100 calls to ViewTestBase::executeView()
- AreaTextTest::testAreaText in lib/
Drupal/ views/ Tests/ Handler/ AreaTextTest.php - ArgumentDefaultTest::testArgumentDefaultPlugin in lib/
Drupal/ views/ Tests/ Plugin/ ArgumentDefaultTest.php - Tests the argument default test plugin.
- ArgumentLanguage::testFilter in lib/
Drupal/ views/ Tests/ Language/ ArgumentLanguage.php - ArgumentNullTest::testAreaText in lib/
Drupal/ views/ Tests/ Handler/ ArgumentNullTest.php - ArgumentStringTest::testGlossary in lib/
Drupal/ views/ Tests/ Handler/ ArgumentStringTest.php - Tests the glossary feature.
File
- lib/
Drupal/ views/ Tests/ ViewTestBase.php, line 177 - Definition of Drupal\views\Tests\ViewTestBase.
Class
- ViewTestBase
- Abstract class for views testing.
Namespace
Drupal\views\TestsCode
protected function executeView($view, $args = array()) {
$view
->setDisplay();
$view
->preExecute($args);
$view
->execute();
$this
->verbose('<pre>Executed view: ' . (string) $view->build_info['query'] . '</pre>');
}