Skip to content

Commit

Permalink
Fixing fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
mamazu committed May 6, 2019
1 parent 7cbbc88 commit a63fd88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/ViewRepository/Cart/CartViewRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ public function getOneByToken(string $token): CartSummaryView
{
/** @var OrderInterface $cart */
$cart = $this->cartRepository->createCartQueryBuilder()
->andWhere('o.checkoutState != :checkoutState')
->andWhere('o.tokenValue = :tokenValue')
->setParameter('tokenValue', $token)
->setParameter('checkoutState', OrderCheckoutStates::STATE_COMPLETED)
->getQuery()
->getOneOrNullResult();

Expand Down
2 changes: 1 addition & 1 deletion tests/DataFixtures/ORM/order.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Sylius\Component\Core\Model\Order:
customer: "@customer_oliver"
checkoutState: "completed"
checkoutCompletedAt: "<date_create('2019-02-01 03:00:00')>"
state: "cart"
state: "new"
payments: ["@placed_order_payment"]
shipments: ["@placed_order_shipment"]
shippingAddress: "@customer_oliver_home_address"
Expand Down

0 comments on commit a63fd88

Please sign in to comment.