Skip to content

Commit 7555a12

Browse files
committed
MC-33071: Stabilize Web-API tests
1 parent 039a827 commit 7555a12

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/RemoveCouponFromCartTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testRemoveCouponFromCart()
5454
$response = $this->graphQlMutation($query, [], '', $this->getHeaderMap());
5555

5656
self::assertArrayHasKey('removeCouponFromCart', $response);
57-
self::assertNull($response['removeCouponFromCart']['cart']['applied_coupon']['code']);
57+
self::assertNull($response['removeCouponFromCart']['cart']['applied_coupon']);
5858
}
5959

6060
/**
@@ -114,7 +114,7 @@ public function testRemoveCouponFromCartIfCouponWasNotSet()
114114
$response = $this->graphQlMutation($query, [], '', $this->getHeaderMap());
115115

116116
self::assertArrayHasKey('removeCouponFromCart', $response);
117-
self::assertNull($response['removeCouponFromCart']['cart']['applied_coupon']['code']);
117+
self::assertNull($response['removeCouponFromCart']['cart']['applied_coupon']);
118118
}
119119

120120
/**

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/RemoveCouponFromCartTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testRemoveCouponFromCart()
4646
$response = $this->graphQlMutation($query);
4747

4848
self::assertArrayHasKey('removeCouponFromCart', $response);
49-
self::assertNull($response['removeCouponFromCart']['cart']['applied_coupon']['code']);
49+
self::assertNull($response['removeCouponFromCart']['cart']['applied_coupon']);
5050
}
5151

5252
/**
@@ -102,7 +102,7 @@ public function testRemoveCouponFromCartIfCouponWasNotSet()
102102
$response = $this->graphQlMutation($query);
103103

104104
self::assertArrayHasKey('removeCouponFromCart', $response);
105-
self::assertNull($response['removeCouponFromCart']['cart']['applied_coupon']['code']);
105+
self::assertNull($response['removeCouponFromCart']['cart']['applied_coupon']);
106106
}
107107

108108
/**

0 commit comments

Comments
 (0)