public function QueryTest::_testInitQuery in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Kernel/Plugin/QueryTest.php \Drupal\Tests\views\Kernel\Plugin\QueryTest::_testInitQuery()
Tests the ViewExecutable::initQuery method.
1 call to QueryTest::_testInitQuery()
- QueryTest::testQuery in core/
modules/ views/ tests/ src/ Kernel/ Plugin/ QueryTest.php - Tests query plugins.
File
- core/
modules/ views/ tests/ src/ Kernel/ Plugin/ QueryTest.php, line 42
Class
- QueryTest
- Tests query plugins.
Namespace
Drupal\Tests\views\Kernel\PluginCode
public function _testInitQuery() {
$view = Views::getView('test_view');
$view
->setDisplay();
$view
->initQuery();
$this
->assertInstanceOf(QueryTestPlugin::class, $view->query);
}