Skip to content

Commit

Permalink
CU-8694zgq2j Removed redundant assertion and order saving
Browse files Browse the repository at this point in the history
  • Loading branch information
Telepatrick committed Jul 3, 2024
1 parent 710a65c commit 902ad8b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Test/Integration/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -638,10 +638,6 @@ protected function createOrder(Address $billingAddress, Address $shippingAddress
*/
protected function assertOrderCreation(Order $order): void
{
$this->orderRepository->save($order);
$this->assertEquals(1, $order->getStorekeeperOrderPendingSync());
$this->assertEquals(Order::STATE_NEW, $order->getState());

$this->consumer->process(json_encode(['orderId' => $order->getIncrementId()]));

$savedOrder = $this->orderFactory->create()->loadByIncrementId($order->getIncrementId());
Expand Down

0 comments on commit 902ad8b

Please sign in to comment.