You are here

XMLParseTest.php in GraphQL 8.4

File

tests/src/Kernel/DataProducer/XML/XMLParseTest.php
View 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

Namesort descending Description
XMLParseTest Data producers XMLParse test class.