Skip to content

Commit

Permalink
[WIP] matomo-org#2137 make tests pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Buchli committed Oct 10, 2016
1 parent a7e1ff4 commit 0d49c04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/ScheduledReports/ScheduledReports.php
Expand Up @@ -37,11 +37,11 @@ class ScheduledReports extends \Piwik\Plugin
const DISPLAY_FORMAT_TABLES_AND_GRAPHS = 3; // Display Tables and Graphs for all reports
const DISPLAY_FORMAT_TABLES_ONLY = 4; // Display only tables for all reports
const DEFAULT_DISPLAY_FORMAT = self::DISPLAY_FORMAT_GRAPHS_ONLY_FOR_KEY_METRICS;
const DEFAULT_DISPLAY_FLAT = false;

const DEFAULT_REPORT_FORMAT = ReportRenderer::HTML_FORMAT;
const DEFAULT_PERIOD = 'week';
const DEFAULT_HOUR = '0';
const DEFAULT_DISPLAY_FLAT = false;

const EMAIL_ME_PARAMETER = 'emailMe';
const EVOLUTION_GRAPH_PARAMETER = 'evolutionGraph';
Expand All @@ -57,8 +57,8 @@ class ScheduledReports extends \Piwik\Plugin
self::EMAIL_ME_PARAMETER => false,
self::EVOLUTION_GRAPH_PARAMETER => false,
self::ADDITIONAL_EMAILS_PARAMETER => false,
self::DISPLAY_FLAT_PARAMETER => false,
self::DISPLAY_FORMAT_PARAMETER => true,
self::DISPLAY_FLAT_PARAMETER => true,
);

private static $managedReportTypes = array(
Expand Down
3 changes: 3 additions & 0 deletions plugins/ScheduledReports/tests/Integration/ApiTest.php
Expand Up @@ -73,6 +73,7 @@ public function testAddReportGetReports()
'parameters' => array(
'displayFormat' => '1',
'emailMe' => true,
'displayFlat' => false,
'additionalEmails' => array('test@test.com', 't2@test.com'),
'evolutionGraph' => true
)
Expand Down Expand Up @@ -522,6 +523,7 @@ private static function getDailyPDFReportData($idSite)
'parameters' => array(
'displayFormat' => '1',
'emailMe' => true,
'displayFlat' => false,
'additionalEmails' => array('test@test.com', 't2@test.com'),
'evolutionGraph' => false
)
Expand All @@ -541,6 +543,7 @@ private static function getMonthlyEmailReportData($idSite)
'parameters' => array(
'displayFormat' => '1',
'emailMe' => false,
'displayFlat' => false,
'additionalEmails' => array('blabla@ec.fr'),
'evolutionGraph' => false
)
Expand Down

0 comments on commit 0d49c04

Please sign in to comment.