@@ -108,18 +108,7 @@ public function testGetSelectedShippingMethodBeforeSet()
108
108
109
109
$ shippingAddress = current ($ response ['cart ' ]['shipping_addresses ' ]);
110
110
self ::assertArrayHasKey ('selected_shipping_method ' , $ shippingAddress );
111
-
112
- self ::assertArrayHasKey ('carrier_code ' , $ shippingAddress ['selected_shipping_method ' ]);
113
- self ::assertNull ($ shippingAddress ['selected_shipping_method ' ]['carrier_code ' ]);
114
-
115
- self ::assertArrayHasKey ('method_code ' , $ shippingAddress ['selected_shipping_method ' ]);
116
- self ::assertNull ($ shippingAddress ['selected_shipping_method ' ]['method_code ' ]);
117
-
118
- self ::assertArrayHasKey ('carrier_title ' , $ shippingAddress ['selected_shipping_method ' ]);
119
- self ::assertNull ($ shippingAddress ['selected_shipping_method ' ]['carrier_title ' ]);
120
-
121
- self ::assertArrayHasKey ('method_title ' , $ shippingAddress ['selected_shipping_method ' ]);
122
- self ::assertNull ($ shippingAddress ['selected_shipping_method ' ]['method_title ' ]);
111
+ self ::assertNull ($ shippingAddress ['selected_shipping_method ' ]);
123
112
}
124
113
125
114
/**
@@ -182,13 +171,7 @@ public function testGetGetSelectedShippingMethodIfShippingMethodIsNotSet()
182
171
183
172
$ shippingAddress = current ($ response ['cart ' ]['shipping_addresses ' ]);
184
173
self ::assertArrayHasKey ('selected_shipping_method ' , $ shippingAddress );
185
-
186
- self ::assertNull ($ shippingAddress ['selected_shipping_method ' ]['carrier_code ' ]);
187
- self ::assertNull ($ shippingAddress ['selected_shipping_method ' ]['method_code ' ]);
188
- self ::assertNull ($ shippingAddress ['selected_shipping_method ' ]['carrier_title ' ]);
189
- self ::assertNull ($ shippingAddress ['selected_shipping_method ' ]['method_title ' ]);
190
- self ::assertNull ($ shippingAddress ['selected_shipping_method ' ]['amount ' ]);
191
- self ::assertNull ($ shippingAddress ['selected_shipping_method ' ]['base_amount ' ]);
174
+ self ::assertNull ('selected_shipping_method ' , $ shippingAddress ['selected_shipping_method ' ]);
192
175
}
193
176
194
177
/**
0 commit comments