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/BaseFixture.php')
-rw-r--r--tests/PHPUnit/BaseFixture.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/PHPUnit/BaseFixture.php b/tests/PHPUnit/BaseFixture.php
index d738f7ae90..8cf6bb377d 100644
--- a/tests/PHPUnit/BaseFixture.php
+++ b/tests/PHPUnit/BaseFixture.php
@@ -8,6 +8,7 @@
use Piwik\Config;
use Piwik\Common;
use Piwik\Access;
+use Piwik\Date;
use Piwik\Site;
/**
@@ -67,7 +68,7 @@ abstract class Test_Piwik_BaseFixture extends PHPUnit_Framework_Assert
// Manually set the website creation date to a day earlier than the earliest day we record stats for
Zend_Registry::get('db')->update(Common::prefixTable("site"),
- array('ts_created' => Piwik_Date::factory($dateTime)->subDay(1)->getDatetime()),
+ array('ts_created' => Date::factory($dateTime)->subDay(1)->getDatetime()),
"idsite = $idSite"
);