Skip to content

Commit 0f317bf

Browse files
committed
8022: Uncaught Error: Call to a member function addItem() on array in app/code/Magento/Sales/Model/Order/Shipment.php
1 parent 44021e7 commit 0f317bf

File tree

1 file changed

+3
-2
lines changed
  • app/code/Magento/Sales/Test/Unit/Model/ResourceModel/Order/Shipment

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ protected function setUp()
8686
'getId',
8787
'getItems',
8888
'getTracks',
89-
'getComments'
89+
'getComments',
90+
'getTracksCollection',
9091
]
9192
)
9293
->getMock();
@@ -123,7 +124,7 @@ public function testProcessRelations()
123124
->method('getComments')
124125
->willReturn([$this->commentMock]);
125126
$this->shipmentMock->expects($this->exactly(2))
126-
->method('getTracks')
127+
->method('getTracksCollection')
127128
->willReturn([$this->trackMock]);
128129
$this->itemMock->expects($this->once())
129130
->method('setParentId')

0 commit comments

Comments
 (0)