EnumTest.php in GraphQL 8.3
File
tests/src/Kernel/Extension/EnumTest.php
View source
<?php
namespace Drupal\Tests\graphql\Kernel\Extension;
use Drupal\Tests\graphql\Kernel\GraphQLTestBase;
class EnumTest extends GraphQLTestBase {
public static $modules = [
'graphql_enum_test',
];
public function testEnumPlugins() {
$query = $this
->getQueryFromFile('enums.gql');
$this
->assertResults($query, [], [
'number' => 'ONE',
'numbers' => [
'ONE',
'TWO',
'THREE',
],
], $this
->defaultCacheMetaData());
}
}
Classes
Name |
Description |
EnumTest |
Test enumeration support in different ways. |