diff options
author | diosmosis <benaka@piwik.pro> | 2015-09-23 10:27:54 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-10-12 21:05:36 +0300 |
commit | 05c7dbdf51981a0eb69a601653434c49233cea0d (patch) | |
tree | cba8457b121f1b693dd0868ff3a52e923dfbc501 /plugins/CoreAdminHome/tests | |
parent | 51d7e6a653b63d083c75770c19746180cb8f0c93 (diff) |
Move subperiod calculation from invalidate archive command to Range period class + add unit tests.
Diffstat (limited to 'plugins/CoreAdminHome/tests')
-rw-r--r-- | plugins/CoreAdminHome/tests/Integration/Commands/InvalidateReportDataTest.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/CoreAdminHome/tests/Integration/Commands/InvalidateReportDataTest.php b/plugins/CoreAdminHome/tests/Integration/Commands/InvalidateReportDataTest.php index 11d675af7b..548be6b868 100644 --- a/plugins/CoreAdminHome/tests/Integration/Commands/InvalidateReportDataTest.php +++ b/plugins/CoreAdminHome/tests/Integration/Commands/InvalidateReportDataTest.php @@ -132,6 +132,26 @@ class InvalidateReportDataTest extends ConsoleCommandTestCase { return array( + array( // no cascade, single site + single day + array('2012-01-01'), + 'day', + '1', + false, + array( + '[Dry-run] invalidating archives for site = [ 1 ], dates = [ 2012-01-01 ], period = [ day ]', + ), + ), + + array( // no cascade, single site + single day + array('2012-01-01'), + 'day', + '1', + true, + array( + '[Dry-run] invalidating archives for site = [ 1 ], dates = [ 2012-01-01 ], period = [ day ]', + ), + ), + array( // no cascade, single site, date, period array('2012-01-01'), 'week', |