Skip to content

Commit 5d761f9

Browse files
author
Alexander Paliarush
committed
MAGETWO-50202: [GitHub] Couldn't save shipment data #527
1 parent 154c61c commit 5d761f9

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

app/code/Magento/Sales/Model/Order/Shipment/Track.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ public function addData(array $data)
214214
}
215215

216216
//@codeCoverageIgnoreStart
217+
217218
/**
218219
* Returns track_number
219220
*
@@ -414,5 +415,6 @@ public function setExtensionAttributes(\Magento\Sales\Api\Data\ShipmentTrackExte
414415
{
415416
return $this->_setExtensionAttributes($extensionAttributes);
416417
}
418+
417419
//@codeCoverageIgnoreEnd
418420
}

app/code/Magento/Sales/Test/Unit/Model/ResourceModel/Order/Shipment/RelationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function setUp()
111111

112112
public function testProcessRelations()
113113
{
114-
$this->shipmentMock->expects($this->once())
114+
$this->shipmentMock->expects($this->exactly(3))
115115
->method('getId')
116116
->willReturn('shipment-id-value');
117117
$this->shipmentMock->expects($this->exactly(2))

app/code/Magento/Shipping/Test/Unit/Model/Order/TrackTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testLookup()
5252
'Magento\Shipping\Model\Order\Track',
5353
['carrierFactory' => $carrierFactory, 'shipmentRepository' => $shipmentRepository]
5454
);
55-
55+
$model->setParentId(1);
5656
$this->assertEquals('trackingInfo', $model->getNumberDetail());
5757
}
5858
}

0 commit comments

Comments
 (0)