From d09588902140ed37c994c6b0de1890e75e5335d7 Mon Sep 17 00:00:00 2001 From: Anton Khabiuk Date: Fri, 17 Jan 2025 14:03:16 +0200 Subject: [PATCH] CC-34502 Order amendment finalisation (#11269) CC-34502 Introduced order amendment grace period. --- .../Business/Facade/CloseOutdatedQuoteRequestsTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/SprykerTest/Zed/QuoteRequest/Business/Facade/CloseOutdatedQuoteRequestsTest.php b/tests/SprykerTest/Zed/QuoteRequest/Business/Facade/CloseOutdatedQuoteRequestsTest.php index a6854a7..2ea8ee9 100644 --- a/tests/SprykerTest/Zed/QuoteRequest/Business/Facade/CloseOutdatedQuoteRequestsTest.php +++ b/tests/SprykerTest/Zed/QuoteRequest/Business/Facade/CloseOutdatedQuoteRequestsTest.php @@ -66,11 +66,11 @@ public function testCloseOutdatedQuoteRequestsUpdateReadyQuoteRequestStatusToClo $quoteRequestTransfer = $this->tester->haveQuoteRequestInReadyStatus( $this->companyUserTransfer, $this->quoteTransfer, - (new DateTime('+1 second'))->format('Y-m-d H:i:s'), + (new DateTime('+2 second'))->format('Y-m-d H:i:s'), ); // Act - sleep(2); + sleep(3); $this->tester->getFacade()->closeOutdatedQuoteRequests(); $storedQuoteRequestTransfer = $this->getQuoteRequestByReference($quoteRequestTransfer->getQuoteRequestReference()); @@ -87,11 +87,11 @@ public function testCloseOutdatedQuoteRequestsNotUpdatesQuoteRequestStatusToClos $quoteRequestTransfer = $this->tester->haveQuoteRequestInInProgressStatus( $this->companyUserTransfer, $this->quoteTransfer, - (new DateTime('+1 second'))->format('Y-m-d H:i:s'), + (new DateTime('+2 second'))->format('Y-m-d H:i:s'), ); // Act - sleep(2); + sleep(3); $this->tester->getFacade()->closeOutdatedQuoteRequests(); $storedQuoteRequestTransfer = $this->getQuoteRequestByReference($quoteRequestTransfer->getQuoteRequestReference());