diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-04-16 03:04:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 03:04:35 +0300 |
commit | affd3737c1c608923ec45f484ddb9afd2650aa6e (patch) | |
tree | 644655a4071d66771ed5065f466ebc102da0dc2c /tests/PHPUnit/Framework | |
parent | 6e3f165ab16f49969b7393ca752aad51e180bf0d (diff) |
Allow generating reports in TSV format (#17464)
* Allow generating reports in TSV format
* adds test files
Diffstat (limited to 'tests/PHPUnit/Framework')
-rw-r--r-- | tests/PHPUnit/Framework/TestCase/SystemTestCase.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/TestCase/SystemTestCase.php b/tests/PHPUnit/Framework/TestCase/SystemTestCase.php index 58ed04fa35..a5648389cc 100644 --- a/tests/PHPUnit/Framework/TestCase/SystemTestCase.php +++ b/tests/PHPUnit/Framework/TestCase/SystemTestCase.php @@ -186,6 +186,27 @@ abstract class SystemTestCase extends TestCase ) ); + // TSV Scheduled Report + array_push( + $apiCalls, + array( + 'ScheduledReports.generateReport', + array( + 'testSuffix' => '_schedrep_in_tsv', + 'date' => $dateTime, + 'periods' => array($period), + 'format' => 'original', + 'fileExtension' => 'tsv', + 'otherRequestParameters' => array( + 'idReport' => 1, + 'reportFormat' => ReportRenderer::TSV_FORMAT, + 'outputType' => \Piwik\Plugins\ScheduledReports\API::OUTPUT_RETURN, + 'serialize' => 0, + ) + ) + ) + ); + if (Fixture::canImagesBeIncludedInScheduledReports()) { // PDF Scheduled Report // tests/PHPUnit/System/processed/test_ecommerceOrderWithItems_scheduled_report_in_pdf_tables_only__ScheduledReports.generateReport_week.original.pdf |