OverrideFieldTest.php in GraphQL 8.3
File
tests/src/Kernel/Extension/OverrideFieldTest.php
View source
<?php
namespace Drupal\Tests\graphql\Kernel\Extension;
use Drupal\Tests\graphql\Kernel\GraphQLTestBase;
class OverrideFieldTest extends GraphQLTestBase {
public static $modules = [
'graphql_plugin_test',
'graphql_override_test',
];
public function testEcho() {
$string = 'Hello Echo!';
$query = $this
->getQueryFromFile('echo.gql');
$this
->assertResults($query, [
'input' => $string,
], [
'echo' => strtoupper($string),
], $this
->defaultCacheMetaData());
}
}