Skip to content

Commit

Permalink
fix test asserting discounts to be null, discounts are empty collection
Browse files Browse the repository at this point in the history
  • Loading branch information
repl6669 committed Sep 15, 2023
1 parent 143391f commit 905d586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/tests/Unit/DiscountTypes/AmountOffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ public function cannot_apply_discount_coupon_without_coupon_code()
$this->assertEquals(0, $cart->discountTotal->value);
$this->assertEquals(2400, $cart->total->value);
$this->assertEquals(400, $cart->taxTotal->value);
$this->assertNull($cart->discounts);
$this->assertTrue($cart->discounts->isEmpty());
}

/**
Expand Down

0 comments on commit 905d586

Please sign in to comment.