You are here

protected function XmlTest::getNewQueryObject in Views XML Backend 8

3 calls to XmlTest::getNewQueryObject()
XmlTest::testAddExtraFieldsWorks in tests/src/Unit/Plugin/views/query/XmlTest.php
XmlTest::testBasicXmlParsing in tests/src/Unit/Plugin/views/query/XmlTest.php
XmlTest::testExecuteWithEmptyRowXpathDisplaysMessage in tests/src/Unit/Plugin/views/query/XmlTest.php

File

tests/src/Unit/Plugin/views/query/XmlTest.php, line 164
Contains \Drupal\Tests\views_xml_backend\Unit\Plugin\views\query\XmlTest.

Class

XmlTest
@coversDefaultClass \Drupal\views_xml_backend\Plugin\views\query\Xml @group views_xml_backend

Namespace

Drupal\Tests\views_xml_backend\Unit\Plugin\views\query

Code

protected function getNewQueryObject(array $options) {
  $query = new Xml([], '', [], $this->client, $this->nullCache, $this->nullLogger, $this->messenger);
  $query
    ->setStringTranslation($this
    ->getStringTranslationStub());
  $query
    ->init($this
    ->getMockedView(), $this
    ->getMockedDisplay(), $options);
  return $query;
}