diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingCatalogPromotionsContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingCatalogPromotionsContext.php index 82e5c57c370..12f58ba3dc7 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingCatalogPromotionsContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingCatalogPromotionsContext.php @@ -911,8 +911,8 @@ public function theCatalogPromotionShouldOperateBetweenYesterdayAndTomorrow( $this->indexPage->open(); Assert::true($this->indexPage->isSingleResourceOnPage([ 'name' => $catalogPromotion->getName(), - 'startDate' => (new \DateTime('yesterday'))->format('Y-m-d'), - 'endDate' => (new \DateTime('tomorrow'))->format('Y-m-d'), + 'startDate' => (new \DateTime('yesterday'))->format('d-m-Y'), + 'endDate' => (new \DateTime('tomorrow'))->format('d-m-Y'), ])); $this->sharedStorage->set('catalog_promotion', $catalogPromotion);