Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Fixtures/TwoSitesWithAnnotations.php')
-rw-r--r--tests/PHPUnit/Fixtures/TwoSitesWithAnnotations.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/PHPUnit/Fixtures/TwoSitesWithAnnotations.php b/tests/PHPUnit/Fixtures/TwoSitesWithAnnotations.php
index 2c986b337c..83b4eded01 100644
--- a/tests/PHPUnit/Fixtures/TwoSitesWithAnnotations.php
+++ b/tests/PHPUnit/Fixtures/TwoSitesWithAnnotations.php
@@ -6,6 +6,7 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
use Piwik\Access;
+use Piwik\Date;
/**
* A fixture that adds two websites and annotations for each website.
@@ -37,8 +38,8 @@ class Test_Piwik_Fixture_TwoSitesWithAnnotations extends Test_Piwik_BaseFixture
// add two annotations per week for three months, starring every third annotation
// first month in 2011, second two in 2012
$count = 0;
- $dateStart = Piwik_Date::factory('2011-12-01');
- $dateEnd = Piwik_Date::factory('2012-03-01');
+ $dateStart = Date::factory('2011-12-01');
+ $dateEnd = Date::factory('2012-03-01');
while ($dateStart->getTimestamp() < $dateEnd->getTimestamp()) {
$starred = $count % 3 == 0 ? 1 : 0;
$site1Text = "$count: Site 1 annotation for " . $dateStart->toString();