You are here

public function EnumTest::testEnumPlugins in GraphQL 8.3

Test enumeration plugins.

File

tests/src/Kernel/Extension/EnumTest.php, line 21

Class

EnumTest
Test enumeration support in different ways.

Namespace

Drupal\Tests\graphql\Kernel\Extension

Code

public function testEnumPlugins() {
  $query = $this
    ->getQueryFromFile('enums.gql');
  $this
    ->assertResults($query, [], [
    'number' => 'ONE',
    'numbers' => [
      'ONE',
      'TWO',
      'THREE',
    ],
  ], $this
    ->defaultCacheMetaData());
}