_testInitQuery example

protected function viewsData() {
    $data = parent::viewsData();
    $data['views_test_data']['table']['base']['query_id'] = 'query_test';

    return $data;
  }

  /** * Tests query plugins. */
  public function testQuery() {
    $this->_testInitQuery();
    $this->_testQueryExecute();
    $this->queryMethodsTests();
  }

  /** * Tests the ViewExecutable::initQuery method. */
  public function _testInitQuery() {
    $view = Views::getView('test_view');
    $view->setDisplay();

    
Home | Imprint | This part of the site doesn't use cookies.