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:
authormattab <matthieu.aubry@gmail.com>2013-07-21 12:01:35 +0400
committermattab <matthieu.aubry@gmail.com>2013-07-21 12:01:36 +0400
commitaca8ec33a85e0a70b818b6227145041717d7a69e (patch)
tree41377e3a9737d63222522ef93ecf8483f3faddfa /tests/PHPUnit/Fixtures/SomeVisitsWithLongUrls.php
parent0a63210e3eae7562af1a3dbee340eb1ee140db3d (diff)
Refs #4059 Work in progress: Conversion to use Namespaces: Period*, Metrics, Segment, SegmentExpression, PluginsManager.
Removed some deprecated code.
Diffstat (limited to 'tests/PHPUnit/Fixtures/SomeVisitsWithLongUrls.php')
-rw-r--r--tests/PHPUnit/Fixtures/SomeVisitsWithLongUrls.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/PHPUnit/Fixtures/SomeVisitsWithLongUrls.php b/tests/PHPUnit/Fixtures/SomeVisitsWithLongUrls.php
index 9eb839ad53..c78a3fb9da 100644
--- a/tests/PHPUnit/Fixtures/SomeVisitsWithLongUrls.php
+++ b/tests/PHPUnit/Fixtures/SomeVisitsWithLongUrls.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;
/**
* Adds one site and tracks 7 visits w/ some long-ish urls (as page urls and
@@ -70,32 +71,32 @@ class Test_Piwik_Fixture_SomeVisitsWithLongUrls extends Test_Piwik_BaseFixture
self::checkResponse($t->doTrackPageView('Hello'));
// VISIT 2 = Another keyword
- $t->setForceVisitDateTime(Piwik_Date::factory($dateTime)->addHour(1)->getDatetime());
+ $t->setForceVisitDateTime(Date::factory($dateTime)->addHour(1)->getDatetime());
$t->setUrlReferrer('http://www.google.com.vn/url?q=Salut');
self::checkResponse($t->doTrackPageView('incredible title!'));
// Visit 3 = Another keyword
- $t->setForceVisitDateTime(Piwik_Date::factory($dateTime)->addHour(2)->getDatetime());
+ $t->setForceVisitDateTime(Date::factory($dateTime)->addHour(2)->getDatetime());
$t->setUrlReferrer('http://www.google.com.vn/url?q=Kia Ora');
self::checkResponse($t->doTrackPageView('incredible title!'));
// Visit 4 = Kia Ora again
- $t->setForceVisitDateTime(Piwik_Date::factory($dateTime)->addHour(3)->getDatetime());
+ $t->setForceVisitDateTime(Date::factory($dateTime)->addHour(3)->getDatetime());
$t->setUrlReferrer('http://www.google.com.vn/url?q=Kia Ora');
self::checkResponse($t->doTrackPageView('incredible title!'));
// Visit 5 = Another search engine
- $t->setForceVisitDateTime(Piwik_Date::factory($dateTime)->addHour(4)->getDatetime());
+ $t->setForceVisitDateTime(Date::factory($dateTime)->addHour(4)->getDatetime());
$t->setUrlReferrer('http://nz.search.yahoo.com/search?p=Kia Ora');
self::checkResponse($t->doTrackPageView('incredible title!'));
// Visit 6 = Another search engine
- $t->setForceVisitDateTime(Piwik_Date::factory($dateTime)->addHour(5)->getDatetime());
+ $t->setForceVisitDateTime(Date::factory($dateTime)->addHour(5)->getDatetime());
$t->setUrlReferrer('http://images.search.yahoo.com/search/images;_ylt=A2KcWcNKJzF?p=Kia%20Ora%20');
self::checkResponse($t->doTrackPageView('incredible title!'));
// Visit 7 = Another search engine
- $t->setForceVisitDateTime(Piwik_Date::factory($dateTime)->addHour(6)->getDatetime());
+ $t->setForceVisitDateTime(Date::factory($dateTime)->addHour(6)->getDatetime());
$t->setUrlReferrer('http://nz.bing.com/images/search?q=+++Kia+ora+++');
self::checkResponse($t->doTrackPageView('incredible title!'));
}