File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Quote Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -92,14 +92,16 @@ public function testApplyCouponTwice()
92
92
*/
93
93
public function testApplyCouponToCartWithNoItems ()
94
94
{
95
- $ this ->markTestIncomplete ('https://github.com/magento/graphql-ce/issues/191 ' );
96
95
$ couponCode = '2?ds5!2d ' ;
97
96
98
97
$ this ->quoteResource ->load ($ this ->quote , 'test_order_1 ' , 'reserved_order_id ' );
99
- $ maskedQuoteId = $ this ->quoteIdToMaskedId ->execute ((int )$ this ->quote ->getId ());
98
+ $ cartId = (int )$ this ->quote ->getId ();
99
+ $ maskedQuoteId = $ this ->quoteIdToMaskedId ->execute ($ cartId );
100
100
$ query = $ this ->prepareAddCouponRequestQuery ($ maskedQuoteId , $ couponCode );
101
101
102
- self ::expectExceptionMessageRegExp ('/Cart doesn \'t contain products/ ' );
102
+ self ::expectExceptionMessage (
103
+ str_replace ('$cartId ' , $ cartId , 'The "$cartId" Cart doesn \'t contain products. ' )
104
+ );
103
105
$ this ->graphQlQuery ($ query );
104
106
}
105
107
You can’t perform that action at this time.
0 commit comments