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
166166 try {
167167 $ this ->validator ->isValid ($ shipment );
168168 $ this ->assertNotEmpty ($ this ->validator ->getMessages ());
169- print_r ( $ this ->validator -> getMessages ());
170- $ this -> assertTrue ( in_array (
169+ $ this ->assertTrue (
170+ in_array (
171171 'Cannot create shipment as bundle product sku should be included as well. ' ,
172172 $ this ->validator ->getMessages ()
173173 )
@@ -220,9 +220,11 @@ public function testIsValidFailTogetherShipmentType(): void
220220 try {
221221 $ this ->validator ->isValid ($ shipment );
222222 $ this ->assertNotEmpty ($ this ->validator ->getMessages ());
223- $ this ->assertTrue (in_array (
223+ $ this ->assertTrue (
224+ in_array (
224225 '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 ()
226228 )
227229 );
228230 } catch (\Exception $ e ) {
You can’t perform that action at this time.
0 commit comments