From 6de3ed47a8ade87b068c115b48dec9ac3f4afbd1 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 27 Aug 2022 13:25:26 +1200 Subject: [PATCH] Improve test error checking --- tests/phpunit/CRMTraits/Import/ParserTrait.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/CRMTraits/Import/ParserTrait.php b/tests/phpunit/CRMTraits/Import/ParserTrait.php index e2180eac7e..050f625bda 100644 --- a/tests/phpunit/CRMTraits/Import/ParserTrait.php +++ b/tests/phpunit/CRMTraits/Import/ParserTrait.php @@ -73,7 +73,8 @@ trait CRMTraits_Import_ParserTrait { 'queue' => $queue, 'errorMode' => CRM_Queue_Runner::ERROR_ABORT, ]); - $runner->runAll(); + $result = $runner->runAll(); + $this->assertEquals(TRUE, $result, $result === TRUE ? '' : $result['exception']->getMessage()); } } -- 2.25.1