From 41e532f22a30dc3bba33fff73e4d66a1da6bd830 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Mon, 25 Sep 2017 16:25:57 +0200 Subject: [PATCH] fixup! [Integration] Improved SetupFactory exception msgs to be user friendly --- eZ/Publish/API/Repository/Tests/BaseTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eZ/Publish/API/Repository/Tests/BaseTest.php b/eZ/Publish/API/Repository/Tests/BaseTest.php index 35a3b3b0353..b6e7a23a88d 100644 --- a/eZ/Publish/API/Repository/Tests/BaseTest.php +++ b/eZ/Publish/API/Repository/Tests/BaseTest.php @@ -159,7 +159,7 @@ 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' ); } @@ -167,7 +167,7 @@ protected function getSetupFactory() 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 ) );