diff options
Diffstat (limited to 'tests/PHPUnit/Integration/EcommerceOrderWithItemsTest.php')
-rwxr-xr-x | tests/PHPUnit/Integration/EcommerceOrderWithItemsTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/PHPUnit/Integration/EcommerceOrderWithItemsTest.php b/tests/PHPUnit/Integration/EcommerceOrderWithItemsTest.php index 89eaf8b7f4..0de25f5e4b 100755 --- a/tests/PHPUnit/Integration/EcommerceOrderWithItemsTest.php +++ b/tests/PHPUnit/Integration/EcommerceOrderWithItemsTest.php @@ -6,6 +6,7 @@ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ use Piwik\Piwik; +use Piwik\Date; /** * Tests API methods after ecommerce orders are tracked. @@ -157,7 +158,7 @@ class Test_Piwik_Integration_EcommerceOrderWithItems extends IntegrationTestCase // test Live! output is OK also for the visit that just bought something (other visits leave an abandoned cart) array('Live.getLastVisitsDetails', array('idSite' => $idSite, - 'date' => Piwik_Date::factory($dateTime)->addHour(30.65)->getDatetime(), + 'date' => Date::factory($dateTime)->addHour(30.65)->getDatetime(), 'periods' => array('day'), 'testSuffix' => '_LiveEcommerceStatusOrdered')), // test API.get method |