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/PluginTest.php')
-rw-r--r--tests/PHPUnit/Integration/PluginTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/PHPUnit/Integration/PluginTest.php b/tests/PHPUnit/Integration/PluginTest.php
index 756749ee01..7ab46a8945 100644
--- a/tests/PHPUnit/Integration/PluginTest.php
+++ b/tests/PHPUnit/Integration/PluginTest.php
@@ -84,11 +84,11 @@ class PluginTest extends IntegrationTestCase
$item = reset($items);
$item = json_decode($item, $assocc = true);
- $date = end($item);
- if (empty($date)) {
- return $date;
+ if (empty($item['startDate'])) {
+ return null;
}
+ $date = $item['startDate'];
return Date::factory($date)->getDatetime();
}