protected function ViewUnitTestBase::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.

68 calls to ViewUnitTestBase::executeView()
AreaTextTest::testAreaText in drupal/core/modules/views/lib/Drupal/views/Tests/Handler/AreaTextTest.php
ArgumentLanguageTest::testArgument in drupal/core/modules/views/lib/Drupal/views/Tests/Language/ArgumentLanguageTest.php
Tests the language argument.
ArgumentNullTest::testAreaText in drupal/core/modules/views/lib/Drupal/views/Tests/Handler/ArgumentNullTest.php
BasicTest::testSimpleArgument in drupal/core/modules/views/lib/Drupal/views/Tests/BasicTest.php
Tests simple argument.
BasicTest::testSimpleFiltering in drupal/core/modules/views/lib/Drupal/views/Tests/BasicTest.php
Tests filtering of the result set.

... See full list

File

drupal/core/modules/views/lib/Drupal/views/Tests/ViewUnitTestBase.php, line 187
Contains \Drupal\views\Tests\ViewUnitTestBase.

Class

ViewUnitTestBase
Defines a base class for Views unit testing.

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>');
}