Skip to content

Commit

Permalink
use filled cart for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Mar 1, 2024
1 parent a72d678 commit 1ac68bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ public void recalculate() throws Exception {

@Test
public void freezeUnfreeze() throws Exception {
withCart(client(), emptyCart -> {
withLineItemAndCustomLineItemFilledCart(client(), emptyCart -> {
assertThat(emptyCart.getCartState())
.isEqualTo(CartState.ACTIVE);
final Cart frozenCart = client().executeBlocking(CartUpdateCommand.of(emptyCart, FreezeCart.of()));
Expand All @@ -606,7 +606,7 @@ public void freezeUnfreeze() throws Exception {
.isEqualTo(CartState.FROZEN);

final Cart unfrozenCart = client().executeBlocking(CartUpdateCommand.of(frozenCart, UnfreezeCart.of()));
assertThat(frozenCart.getCartState())
assertThat(unfrozenCart.getCartState())
.isEqualTo(CartState.ACTIVE);
return unfrozenCart;
});
Expand Down

0 comments on commit 1ac68bd

Please sign in to comment.