public function OverrideFieldTest::testEcho in GraphQL 8.3
Test if the schema is created properly.
File
- tests/
src/ Kernel/ Extension/ OverrideFieldTest.php, line 21
Class
- OverrideFieldTest
- Test plugin based schema generation.
Namespace
Drupal\Tests\graphql\Kernel\ExtensionCode
public function testEcho() {
$string = 'Hello Echo!';
$query = $this
->getQueryFromFile('echo.gql');
$this
->assertResults($query, [
'input' => $string,
], [
'echo' => strtoupper($string),
], $this
->defaultCacheMetaData());
}