File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
app/code/Magento/Bundle/Test/Unit/Model/Sales/Order Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -166,8 +166,8 @@ public function testIsValidFailSeparateShipmentType(): void
166
166
try {
167
167
$ this ->validator ->isValid ($ shipment );
168
168
$ this ->assertNotEmpty ($ this ->validator ->getMessages ());
169
- print_r ( $ this ->validator -> getMessages ());
170
- $ this -> assertTrue ( in_array (
169
+ $ this ->assertTrue (
170
+ in_array (
171
171
'Cannot create shipment as bundle product sku should be included as well. ' ,
172
172
$ this ->validator ->getMessages ()
173
173
)
@@ -220,9 +220,11 @@ public function testIsValidFailTogetherShipmentType(): void
220
220
try {
221
221
$ this ->validator ->isValid ($ shipment );
222
222
$ this ->assertNotEmpty ($ this ->validator ->getMessages ());
223
- $ this ->assertTrue (in_array (
223
+ $ this ->assertTrue (
224
+ in_array (
224
225
'Cannot create shipment as bundle product "sku" has shipment type "Together". '
225
- . 'Bundle product itself should be shipped instead. ' , $ this ->validator ->getMessages ()
226
+ . 'Bundle product itself should be shipped instead. ' ,
227
+ $ this ->validator ->getMessages ()
226
228
)
227
229
);
228
230
} catch (\Exception $ e ) {
You can’t perform that action at this time.
0 commit comments