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.

77 calls to ViewUnitTestBase::executeView()

File

drupal/core/modules/views/lib/Drupal/views/Tests/ViewUnitTestBase.php, line 221
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();
}