You are here

protected function ThunderGqlsTestBase::getQueriesDirectory in Thunder 6.2.x

Get the path to the directory containing test query files.

Return value

string The path to the collection of test query files.

3 calls to ThunderGqlsTestBase::getQueriesDirectory()
ThunderGqlsTestBase::getExpectedResponseFromFile in modules/thunder_gqls/tests/src/Functional/ThunderGqlsTestBase.php
Retrieve the GraphQL response stored in a file as string.
ThunderGqlsTestBase::getQueryFromFile in modules/thunder_gqls/tests/src/Functional/ThunderGqlsTestBase.php
Retrieve the GraphQL query stored in a file as string.
ThunderGqlsTestBase::getVariablesFromFile in modules/thunder_gqls/tests/src/Functional/ThunderGqlsTestBase.php
Retrieve the GraphQL variables stored in a file as string.

File

modules/thunder_gqls/tests/src/Functional/ThunderGqlsTestBase.php, line 90

Class

ThunderGqlsTestBase
The base class for all functional Thunder GraphQl schema tests.

Namespace

Drupal\Tests\thunder_gqls\Functional

Code

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