We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fafae6 commit 34513d4Copy full SHA for 34513d4
tests/wpunit/CartQueriesTest.php
@@ -538,13 +538,11 @@ public function testCartQueryWithFees() {
538
$this->assertQuerySuccessful(
539
$response,
540
[
541
- $this->expectedField( 'cart.total', self::NOT_NULL ),
542
- $this->expectedField( 'cart.feeTotal', "$10.50" ),
543
- $this->expectedField( 'cart.feeTax', "$0.00" ),
+ $this->expectedField( 'cart.total', self::NOT_FALSY ),
+ $this->expectedField( 'cart.feeTotal', self::NOT_FALSY ),
544
$this->expectedField( 'cart.fees.#.name', 'Test Fee' ),
545
$this->expectedField( 'cart.fees.#.amount', floatval( 10.50 ) ),
546
$this->expectedField( 'cart.fees.#.total', floatval( 10.50 ) ),
547
-
548
]
549
);
550
0 commit comments