Skip to content

Commit bbb6732

Browse files
committed
ACP2E-1650:Create Shipment API
- fixed static issues
1 parent c3230af commit bbb6732

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/code/Magento/Bundle/Test/Unit/Model/Sales/Order/BundleOrderTypeValidatorTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)