Skip to content

Commit f39b7f5

Browse files
committed
MAGETWO-56429: Shipment creation through API change order status. Back port for 2.0.x
1 parent b4908c1 commit f39b7f5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

app/code/Magento/Sales/Test/Unit/Model/Order/Shipment/Validation/QuantityValidatorTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ public function testValidateTrackWithoutOrderId()
4545
$this->shipmentMock->expects($this->once())
4646
->method('getOrderId')
4747
->willReturn(null);
48-
$this->assertEquals([__('Order Id is required for shipment document')], $this->validator->validate($this->shipmentMock));
48+
$this->assertEquals(
49+
[__('Order Id is required for shipment document')],
50+
$this->validator->validate($this->shipmentMock)
51+
);
4952
}
5053

5154
public function testValidateTrackWithoutItems()
@@ -56,6 +59,9 @@ public function testValidateTrackWithoutItems()
5659
$this->shipmentMock->expects($this->once())
5760
->method('getItems')
5861
->willReturn(null);
59-
$this->assertEquals([__('You can\'t create a shipment without products.')], $this->validator->validate($this->shipmentMock));
62+
$this->assertEquals(
63+
[__('You can\'t create a shipment without products.')],
64+
$this->validator->validate($this->shipmentMock)
65+
);
6066
}
6167
}

0 commit comments

Comments
 (0)