diff options
Diffstat (limited to 'tests/PHPUnit/BaseFixture.php')
-rw-r--r-- | tests/PHPUnit/BaseFixture.php | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/tests/PHPUnit/BaseFixture.php b/tests/PHPUnit/BaseFixture.php index d825ad0848..d9fc108698 100644 --- a/tests/PHPUnit/BaseFixture.php +++ b/tests/PHPUnit/BaseFixture.php @@ -176,14 +176,13 @@ abstract class Test_Piwik_BaseFixture extends PHPUnit_Framework_Assert } /** - * Create two MAIL and two MOBILE scheduled reports + * Create three MAIL and two MOBILE scheduled reports * * Reports sent by mail can contain PNG graphs when the user specifies it. * Depending on the system under test, generated images differ slightly. * Because of this discrepancy, PNG graphs are only tested if the system under test * has the characteristics described in 'canImagesBeIncludedInScheduledReports'. * See tests/README.md for more detail. - * Note: graphs generated using row evolution API are not tested as they are currently too slow * * @see canImagesBeIncludedInScheduledReports * @param int $idSite id of website created @@ -213,7 +212,7 @@ abstract class Test_Piwik_BaseFixture extends PHPUnit_Framework_Assert Piwik_PDFReports::EMAIL_TYPE, Piwik_ReportRenderer::HTML_FORMAT, // overridden in getApiForTestingScheduledReports() $availableReportIds, - array("displayFormat" => Piwik_PDFReports::DISPLAY_FORMAT_TABLES_ONLY) + array(Piwik_PDFReports::DISPLAY_FORMAT_PARAMETER => Piwik_PDFReports::DISPLAY_FORMAT_TABLES_ONLY) ); // set-up sms report for one website @@ -250,7 +249,22 @@ abstract class Test_Piwik_BaseFixture extends PHPUnit_Framework_Assert Piwik_PDFReports::EMAIL_TYPE, Piwik_ReportRenderer::HTML_FORMAT, // overridden in getApiForTestingScheduledReports() $availableReportIds, - array("displayFormat" => Piwik_PDFReports::DISPLAY_FORMAT_TABLES_AND_GRAPHS) + array(Piwik_PDFReports::DISPLAY_FORMAT_PARAMETER => Piwik_PDFReports::DISPLAY_FORMAT_TABLES_AND_GRAPHS) + ); + + // set-up mail report with one row evolution based png graph + Piwik_PDFReports_API::getInstance()->addReport( + $idSite, + 'Mail Test report', + 'day', + 0, + Piwik_PDFReports::EMAIL_TYPE, + Piwik_ReportRenderer::HTML_FORMAT, + array('Actions_getPageTitles'), + array( + Piwik_PDFReports::DISPLAY_FORMAT_PARAMETER => Piwik_PDFReports::DISPLAY_FORMAT_GRAPHS_ONLY, + Piwik_PDFReports::EVOLUTION_GRAPH_PARAMETER => 'true', + ) ); } } |