diff --git a/Test/Integration/GraphQlTestCase.php b/Test/Integration/GraphQlTestCase.php index 0d3f3e4..b7186de 100644 --- a/Test/Integration/GraphQlTestCase.php +++ b/Test/Integration/GraphQlTestCase.php @@ -17,6 +17,7 @@ class GraphQlTestCase extends AbstractTestCase */ protected function getGraphQlQueryData(string $query): array { + // @phpstan-ignore-next-line $graphQlRequest = $this->objectManager->get(GraphQlRequest::class); $response = $graphQlRequest->send($query); return json_decode($response->getContent(), true); diff --git a/Test/Integration/Traits/AssertModuleIsRegisteredForReal.php b/Test/Integration/Traits/AssertModuleIsRegisteredForReal.php index 31f87c4..941592c 100644 --- a/Test/Integration/Traits/AssertModuleIsRegisteredForReal.php +++ b/Test/Integration/Traits/AssertModuleIsRegisteredForReal.php @@ -14,7 +14,11 @@ trait AssertModuleIsRegisteredForReal protected function assertModuleIsRegisteredForReal(string $moduleName) { - $directoryList = $this->om()->create(DirectoryList::class, ['root' => BP]); // @phpstan-ignore + if (!defined('BP')) { + define('BP', __DIR__); + } + + $directoryList = $this->om()->create(DirectoryList::class, ['root' => BP]); $deploymentConfigReader = $this->om()->create(DeploymentConfigReader::class, ['dirList' => $directoryList]); $deploymentConfig = $this->om()->create(DeploymentConfig::class, ['reader' => $deploymentConfigReader]);