diff --git a/Tests/Unit/Persistence/Generic/Storage/Typo3DbQueryParserTest.php b/Tests/Unit/Persistence/Generic/Storage/Typo3DbQueryParserTest.php index 52d2f19fa..73f97e49c 100644 --- a/Tests/Unit/Persistence/Generic/Storage/Typo3DbQueryParserTest.php +++ b/Tests/Unit/Persistence/Generic/Storage/Typo3DbQueryParserTest.php @@ -632,7 +632,7 @@ public function visibilityConstraintStatementIsGeneratedAccordingToTheQuerySetti // simulate time for backend enable fields $GLOBALS['SIM_ACCESS_TIME'] = 1451779200; // simulate time for frontend (PageRepository) enable fields - $dateAspect = new DateTimeAspect(new \DateTimeImmutable('3.1.2016')); + $dateAspect = new DateTimeAspect(new \DateTimeImmutable('@1451779200')); $context = new Context(['date' => $dateAspect]); GeneralUtility::setSingletonInstance(Context::class, $context); @@ -702,7 +702,7 @@ public function respectEnableFieldsSettingGeneratesCorrectStatement($mode, $resp // simulate time for backend enable fields $GLOBALS['SIM_ACCESS_TIME'] = 1451779200; // simulate time for frontend (PageRepository) enable fields - $dateAspect = new DateTimeAspect(new \DateTimeImmutable('3.1.2016')); + $dateAspect = new DateTimeAspect(new \DateTimeImmutable('@1451779200')); $context = new Context(['date' => $dateAspect]); GeneralUtility::setSingletonInstance(Context::class, $context);