From c6d419c1313334aa349c68f3d3ae266221df095c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 15 Nov 2022 20:13:41 -0500 Subject: [PATCH] Better error messages from unit test --- tests/phpunit/Civi/Angular/ManagerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/Civi/Angular/ManagerTest.php b/tests/phpunit/Civi/Angular/ManagerTest.php index 805ca53f1b..eae65528ff 100644 --- a/tests/phpunit/Civi/Angular/ManagerTest.php +++ b/tests/phpunit/Civi/Angular/ManagerTest.php @@ -57,14 +57,14 @@ class ManagerTest extends \CiviUnitTestCase { if (isset($module['js'])) { $this->assertTrue(is_array($module['js'])); foreach ($module['js'] as $file) { - $this->assertTrue(file_exists($this->res->getPath($module['ext'], $file))); + $this->assertTrue(file_exists($this->res->getPath($module['ext'], $file)), "File '$file' not found for " . $module['ext']); $counts['js']++; } } if (isset($module['css'])) { $this->assertTrue(is_array($module['css'])); foreach ($module['css'] as $file) { - $this->assertTrue(file_exists($this->res->getPath($module['ext'], $file))); + $this->assertTrue(file_exists($this->res->getPath($module['ext'], $file)), "File '$file' not found for " . $module['ext']); $counts['css']++; } } -- 2.25.1