XMLParseTest.php in GraphQL 8.4
File
tests/src/Kernel/DataProducer/XML/XMLParseTest.phpView source
<?php
namespace Drupal\Tests\graphql\Kernel\DataProducer\XML;
/**
* Data producers XMLParse test class.
*
* @group graphql
*/
class XMLParseTest extends XMLTestBase {
/**
* @covers \Drupal\graphql\Plugin\GraphQL\DataProducer\XML\XMLParse::resolve
*/
public function testXmlParse() : void {
$result = $this
->executeDataProducer('xml_parse', [
'input' => $this
->getDocumentSource(),
]);
$this
->assertInstanceOf(\DOMElement::class, $result);
}
}
Classes
Name | Description |
---|---|
XMLParseTest | Data producers XMLParse test class. |