protected function GraphQLFileTestTrait::getQueriesDirectory in GraphQL 8.3
Get the path to the directory containing test query files.
Return value
string The path to the collection of test query files.
1 call to GraphQLFileTestTrait::getQueriesDirectory()
- GraphQLFileTestTrait::getQuery in tests/
src/ Traits/ GraphQLFileTestTrait.php - Retrieve the GraphQL query stored in a file as string.
File
- tests/
src/ Traits/ GraphQLFileTestTrait.php, line 20
Class
- GraphQLFileTestTrait
- Trait for running tests against GraphQL query files.
Namespace
Drupal\Tests\graphql\TraitsCode
protected function getQueriesDirectory() {
return drupal_get_path('module', explode('\\', get_class($this))[2]) . '/tests/queries';
}