From 266b951f03dce5f91bc7d8b477f40ebe21d37e6e Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 10 Jun 2022 13:25:21 +1200 Subject: [PATCH] Reduce test output spam --- tests/phpunit/api/v3/JobTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/api/v3/JobTest.php b/tests/phpunit/api/v3/JobTest.php index b144372b35..967dec4737 100644 --- a/tests/phpunit/api/v3/JobTest.php +++ b/tests/phpunit/api/v3/JobTest.php @@ -2344,11 +2344,12 @@ class api_v3_JobTest extends CiviUnitTestCase { if (empty($_SERVER['QUERY_STRING'])) { $_SERVER['QUERY_STRING'] = 'reset=1'; } - + ob_start(); $this->callAPISuccess('job', 'mail_report', [ 'instanceId' => $this->report_instance['id'], 'format' => 'print', ]); + ob_end_clean(); $message = $mut->getMostRecentEmail('ezc'); @@ -2380,10 +2381,12 @@ class api_v3_JobTest extends CiviUnitTestCase { $_SERVER['QUERY_STRING'] = 'reset=1'; } + ob_start(); $this->callAPISuccess('job', 'mail_report', [ 'instanceId' => $this->report_instance['id'], 'format' => 'pdf', ]); + ob_end_clean(); $message = $mut->getMostRecentEmail('ezc'); @@ -2424,11 +2427,12 @@ class api_v3_JobTest extends CiviUnitTestCase { if (empty($_SERVER['QUERY_STRING'])) { $_SERVER['QUERY_STRING'] = 'reset=1'; } - + ob_start(); $this->callAPISuccess('job', 'mail_report', [ 'instanceId' => $this->report_instance['id'], 'format' => 'csv', ]); + ob_end_clean(); $message = $mut->getMostRecentEmail('ezc'); -- 2.25.1