public function QueryTest::_testQueryExecute

1 call to QueryTest::_testQueryExecute()
QueryTest::testQuery in drupal/core/modules/views/lib/Drupal/views/Tests/Plugin/QueryTest.php
Tests query plugins.

File

drupal/core/modules/views/lib/Drupal/views/Tests/Plugin/QueryTest.php, line 60
Definition of Drupal\views\Tests\Plugin\QueryTest.

Class

QueryTest
Tests query plugins.

Namespace

Drupal\views\Tests\Plugin

Code

public function _testQueryExecute() {
  $view = views_get_view('test_view');
  $view
    ->setDisplay();
  $view
    ->initQuery();
  $view->query
    ->setAllItems($this
    ->dataSet());
  $this
    ->executeView($view);
  $this
    ->assertTrue($view->result, 'Make sure the view result got filled');
}