@@ -56,12 +56,15 @@ protected function setUp()
56
56
}
57
57
58
58
/**
59
- * @magentoApiDataFixture Magento/Checkout/_files/quote_with_address_saved.php
59
+ * @magentoApiDataFixture Magento/Customer/_files/customer.php
60
+ * @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
61
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
62
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
60
63
*/
61
64
public function testRemoveItemFromCart ()
62
65
{
63
66
$ quote = $ this ->quoteFactory ->create ();
64
- $ this ->quoteResource ->load ($ quote , 'test_order_1 ' , 'reserved_order_id ' );
67
+ $ this ->quoteResource ->load ($ quote , 'test_quote ' , 'reserved_order_id ' );
65
68
$ maskedQuoteId = $ this ->quoteIdToMaskedId ->execute ((int )$ quote ->getId ());
66
69
$ itemId = (int )$ quote ->getItemByProduct ($ this ->productRepository ->get ('simple ' ))->getId ();
67
70
@@ -85,12 +88,15 @@ public function testRemoveItemFromNonExistentCart()
85
88
}
86
89
87
90
/**
88
- * @magentoApiDataFixture Magento/Checkout/_files/quote_with_address_saved.php
91
+ * @magentoApiDataFixture Magento/Customer/_files/customer.php
92
+ * @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
93
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
94
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
89
95
*/
90
96
public function testRemoveNonExistentItem ()
91
97
{
92
98
$ quote = $ this ->quoteFactory ->create ();
93
- $ this ->quoteResource ->load ($ quote , 'test_order_1 ' , 'reserved_order_id ' );
99
+ $ this ->quoteResource ->load ($ quote , 'test_quote ' , 'reserved_order_id ' );
94
100
$ maskedQuoteId = $ this ->quoteIdToMaskedId ->execute ((int )$ quote ->getId ());
95
101
$ notExistentItemId = 999 ;
96
102
@@ -101,13 +107,16 @@ public function testRemoveNonExistentItem()
101
107
}
102
108
103
109
/**
104
- * @magentoApiDataFixture Magento/Checkout/_files/quote_with_address_saved.php
110
+ * @magentoApiDataFixture Magento/Customer/_files/customer.php
111
+ * @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
112
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
113
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
105
114
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_virtual_product_saved.php
106
115
*/
107
116
public function testRemoveItemIfItemIsNotBelongToCart ()
108
117
{
109
118
$ firstQuote = $ this ->quoteFactory ->create ();
110
- $ this ->quoteResource ->load ($ firstQuote , 'test_order_1 ' , 'reserved_order_id ' );
119
+ $ this ->quoteResource ->load ($ firstQuote , 'test_quote ' , 'reserved_order_id ' );
111
120
$ firstQuoteMaskedId = $ this ->quoteIdToMaskedId ->execute ((int )$ firstQuote ->getId ());
112
121
113
122
$ secondQuote = $ this ->quoteFactory ->create ();
@@ -130,14 +139,16 @@ public function testRemoveItemIfItemIsNotBelongToCart()
130
139
131
140
/**
132
141
* @magentoApiDataFixture Magento/Customer/_files/customer.php
133
- * @magentoApiDataFixture Magento/Checkout/_files/quote_with_virtual_product_saved.php
142
+ * @magentoApiDataFixture Magento/Catalog/_files/product_virtual.php
143
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/guest/create_empty_cart.php
144
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_virtual_product.php
134
145
*/
135
146
public function testRemoveItemFromGuestCart ()
136
147
{
137
148
$ guestQuote = $ this ->quoteFactory ->create ();
138
149
$ this ->quoteResource ->load (
139
150
$ guestQuote ,
140
- 'test_order_with_virtual_product_without_address ' ,
151
+ 'test_quote ' ,
141
152
'reserved_order_id '
142
153
);
143
154
$ guestQuoteMaskedId = $ this ->quoteIdToMaskedId ->execute ((int )$ guestQuote ->getId ());
@@ -154,8 +165,11 @@ public function testRemoveItemFromGuestCart()
154
165
}
155
166
156
167
/**
168
+ * @magentoApiDataFixture Magento/Customer/_files/customer.php
169
+ * @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
170
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
171
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
157
172
* @magentoApiDataFixture Magento/Customer/_files/three_customers.php
158
- * @magentoApiDataFixture Magento/Checkout/_files/quote_with_address_saved.php
159
173
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_virtual_product_saved.php
160
174
*/
161
175
public function testRemoveItemFromAnotherCustomerCart ()
0 commit comments