Reduce test output spam
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 10 Jun 2022 01:25:21 +0000 (13:25 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 10 Jun 2022 01:25:21 +0000 (13:25 +1200)
tests/phpunit/api/v3/JobTest.php

index b144372b351b442ed7a09aaaf004752ae02784c7..967dec4737bebb1f6551106b3167120b1de5cf3e 100644 (file)
@@ -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');