Skip to content

Commit

Permalink
fixup! [Integration] Improved SetupFactory exception msgs to be user …
Browse files Browse the repository at this point in the history
…friendly
  • Loading branch information
Andrew Longosz committed Sep 25, 2017
1 parent 53e41f6 commit 41e532f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eZ/Publish/API/Repository/Tests/BaseTest.php
Expand Up @@ -159,15 +159,15 @@ protected function getSetupFactory()
if (null === $this->setupFactory) {
if (false === isset($_ENV['setupFactory'])) {
throw new \ErrorException(
'Missing mandatory setting $_ENV["setupFactory"]. You are trying to run integration tests. Use one of the available phpunit-integration-*.xml configurations'
'Missing mandatory setting $_ENV["setupFactory"], this should normally be set in the relevant phpunit-integration-*.xml file and refer to a setupFactory for the given StorageEngine/SearchEngine in use'
);
}

$setupClass = $_ENV['setupFactory'];
if (false === class_exists($setupClass)) {
throw new \ErrorException(
sprintf(
'$_ENV["setupFactory"] does not reference an existing class. Class %s does not exist. Did you forget to install a dependency?',
'$_ENV["setupFactory"] does not reference an existing class: %s. Did you forget to install an package dependency?',
$setupClass
)
);
Expand Down

0 comments on commit 41e532f

Please sign in to comment.