diff options
Diffstat (limited to 'tests/PHPUnit/Integration/PluginTest.php')
-rw-r--r-- | tests/PHPUnit/Integration/PluginTest.php | 6 |
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(); } |