Skip to content

Commit

Permalink
CC-34502 Order amendment finalisation (#11269)
Browse files Browse the repository at this point in the history
CC-34502 Introduced order amendment grace period.
  • Loading branch information
AsonUnique authored Jan 17, 2025
1 parent c33c847 commit d095889
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand All @@ -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());

Expand Down

0 comments on commit d095889

Please sign in to comment.