diff --git a/package_manager/tests/src/Functional/ExcludedPathsTest.php b/package_manager/tests/src/Functional/ExcludedPathsTest.php index 3fbe8808ab6063c5abccc41f9d649dcc2657b50e..064280ce2fd90babc34808a57cd965bf47f3f215 100644 --- a/package_manager/tests/src/Functional/ExcludedPathsTest.php +++ b/package_manager/tests/src/Functional/ExcludedPathsTest.php @@ -5,6 +5,7 @@ namespace Drupal\Tests\package_manager\Functional; use Drupal\Core\Site\Settings; use Drupal\package_manager\PathLocator; use Drupal\package_manager\Stage; +use Drupal\package_manager\StageException; use Drupal\Tests\BrowserTestBase; /** @@ -57,7 +58,18 @@ class ExcludedPathsTest extends BrowserTestBase { $this->container->get('package_manager.cleaner'), $this->container->get('event_dispatcher') ); - $stage->create(); + try { + $stage->create(); + } + catch (StageException $e) { + foreach ($e->getResults() as $result) { + print_r($result->getSummary() . "\n"); + foreach ($result->getMessages() as $message) { + print_r($message . "\n"); + } + } + throw $e; + } $this->assertDirectoryExists($stage_dir); $this->assertDirectoryNotExists("$stage_dir/sites/simpletest");