public function QueryTest::_testInitQuery in Views (for Drupal 7) 8.3
Tests the ViewExecutable::initQuery method.
1 call to QueryTest::_testInitQuery()
- QueryTest::testQuery in lib/
Drupal/ views/ Tests/ Plugin/ QueryTest.php - Tests query plugins.
File
- lib/
Drupal/ views/ Tests/ Plugin/ QueryTest.php, line 50 - Definition of Drupal\views\Tests\Plugin\QueryTest.
Class
- QueryTest
- Tests query plugins.
Namespace
Drupal\views\Tests\PluginCode
public function _testInitQuery() {
$view = $this
->getBasicView();
$view
->initQuery();
$this
->assertTrue($view->query instanceof QueryTestPlugin, 'Make sure the right query plugin got instantiated.');
}