protected function ViewTestBase::executeView

Executes a view with debugging.

Parameters

\Drupal\views\ViewExecutable $view: The view object.

array $args: (optional) An array of the view arguments to use for the view.

34 calls to ViewTestBase::executeView()
ArgumentDefaultTest::testArgumentDefaultPlugin in drupal/core/modules/views/lib/Drupal/views/Tests/Plugin/ArgumentDefaultTest.php
Tests the argument default test plugin.
ArgumentStringTest::testGlossary in drupal/core/modules/views/lib/Drupal/views/Tests/Handler/ArgumentStringTest.php
Tests the glossary feature.
ArgumentUserUIDTest::testCommentUserUIDTest in drupal/core/modules/views/lib/Drupal/views/Tests/Comment/ArgumentUserUIDTest.php
CacheTest::testNoneCaching in drupal/core/modules/views/lib/Drupal/views/Tests/Plugin/CacheTest.php
Tests no caching.
CacheTest::testTimeCaching in drupal/core/modules/views/lib/Drupal/views/Tests/Plugin/CacheTest.php
Tests time based caching.

... See full list

File

drupal/core/modules/views/lib/Drupal/views/Tests/ViewTestBase.php, line 219
Contains \Drupal\views\Tests\ViewTestBase.

Class

ViewTestBase
Defines a base class for Views testing in the full web test environment.

Namespace

Drupal\views\Tests

Code

protected function executeView($view, $args = array()) {
  $view
    ->setDisplay();
  $view
    ->preExecute($args);
  $view
    ->execute();
  $this
    ->verbose('<pre>Executed view: ' . (string) $view->build_info['query'] . '</pre>');
}