protected function ViewsTestCase::executeView

3.x views_query.test protected ViewsTestCase::executeView($view, $args = array())

Helper function to execute a view with debugging.

Parameters

view $view:

array $args:

77 calls to ViewsTestCase::executeView()
ViewsBasicTest::testSimpleArgument in tests/views_basic.test
Tests simple argument.
ViewsBasicTest::testSimpleFiltering in tests/views_basic.test
Tests filtering of the result set.
ViewsBasicTest::testSimpleResultSet in tests/views_basic.test
Tests a trivial result set.
ViewsCacheTest::testNoneCaching in tests/views_cache.test
Tests no caching.
ViewsCacheTest::testTimeCaching in tests/views_cache.test
Tests time based caching.

... See full list

File

tests/views_query.test, line 118
Tests for Views query features.

Class

ViewsTestCase
Abstract class for views testing.

Code

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