You are here

protected function QueryFileTrait::getQueriesDirectory in GraphQL 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Traits/QueryFileTrait.php \Drupal\Tests\graphql\Traits\QueryFileTrait::getQueriesDirectory()

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 QueryFileTrait::getQueriesDirectory()
QueryFileTrait::getQueryFromFile in tests/src/Traits/QueryFileTrait.php
Retrieve the GraphQL query stored in a file as string.

File

tests/src/Traits/QueryFileTrait.php, line 16

Class

QueryFileTrait
Trait for retrieving GraphQL queries from files.

Namespace

Drupal\Tests\graphql\Traits

Code

protected function getQueriesDirectory() {
  return drupal_get_path('module', explode('\\', get_class($this))[2]) . '/tests/queries';
}