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()
AreaTextTest::testAreaText in drupal/core/modules/views/lib/Drupal/views/Tests/Handler/AreaTextTest.php
AreaTitleTest::testTitleText in drupal/core/modules/views/lib/Drupal/views/Tests/Handler/AreaTitleTest.php
Tests the title area handler.
ArgumentDateTest::testCreatedFullDateHandler in drupal/core/modules/views/lib/Drupal/views/Tests/Handler/ArgumentDateTest.php
Tests the CreatedFullDate handler.
ArgumentDateTest::testDayHandler in drupal/core/modules/views/lib/Drupal/views/Tests/Handler/ArgumentDateTest.php
Tests the Day handler.
ArgumentDateTest::testMonthHandler in drupal/core/modules/views/lib/Drupal/views/Tests/Handler/ArgumentDateTest.php
Tests the Month handler.

... See full list

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