You are here

public function XMLTestBase::getDocumentSource in GraphQL 8.4

Returns the source of the test document.

Return value

bool|string

1 call to XMLTestBase::getDocumentSource()
XMLParseTest::testXmlParse in tests/src/Kernel/DataProducer/XML/XMLParseTest.php
@covers \Drupal\graphql\Plugin\GraphQL\DataProducer\XML\XMLParse::resolve

File

tests/src/Kernel/DataProducer/XML/XMLTestBase.php, line 29

Class

XMLTestBase
Base class for XML data producer tests.

Namespace

Drupal\Tests\graphql\Kernel\DataProducer\XML

Code

public function getDocumentSource() {
  return file_get_contents(drupal_get_path('module', 'graphql') . '/tests/files/xml/test.xml');
}