public function LanguageContextTest::testInheritedLanguage in GraphQL 8.3
Test inherited language.
File
- tests/
src/ Kernel/ Framework/ LanguageContextTest.php, line 160
Class
- LanguageContextTest
- Test contextual language negotiation.
Namespace
Drupal\Tests\graphql\Kernel\FrameworkCode
public function testInheritedLanguage() {
$query = <<<GQL
query {
edge(language: "fr") {
language
}
}
GQL;
$this
->assertResults($query, [], [
'edge' => [
'language' => 'fr',
],
], $this
->defaultCacheMetaData());
}