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/Integration/PeriodIsRange_DateIsLastN_MetadataAndNormalAPITest.php')
-rwxr-xr-xtests/PHPUnit/Integration/PeriodIsRange_DateIsLastN_MetadataAndNormalAPITest.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/PHPUnit/Integration/PeriodIsRange_DateIsLastN_MetadataAndNormalAPITest.php b/tests/PHPUnit/Integration/PeriodIsRange_DateIsLastN_MetadataAndNormalAPITest.php
index e8dd0e63bd..88d2c5bf76 100755
--- a/tests/PHPUnit/Integration/PeriodIsRange_DateIsLastN_MetadataAndNormalAPITest.php
+++ b/tests/PHPUnit/Integration/PeriodIsRange_DateIsLastN_MetadataAndNormalAPITest.php
@@ -5,6 +5,7 @@
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
+use Piwik\Date;
/**
* test Metadata API + period=range&date=lastN
@@ -24,7 +25,7 @@ class Test_Piwik_Integration_PeriodIsRange_DateIsLastN_MetadataAndNormalAPI exte
return;
}
- self::$fixture->dateTime = Piwik_Date::factory('now')->getDateTime();
+ self::$fixture->dateTime = Date::factory('now')->getDateTime();
parent::setUpBeforeClass();
}
@@ -75,8 +76,8 @@ class Test_Piwik_Integration_PeriodIsRange_DateIsLastN_MetadataAndNormalAPI exte
);
$dates = array(
'last7',
- Piwik_Date::factory('now')->subDay(6)->toString() . ',today',
- Piwik_Date::factory('now')->subDay(6)->toString() . ',now',
+ Date::factory('now')->subDay(6)->toString() . ',today',
+ Date::factory('now')->subDay(6)->toString() . ',now',
);
$result = array();