Skip to content

Commit 59801ec

Browse files
committed
fix(ci): use getMockBuilder with addMethods only for missing methods on OrderInterface
1 parent 14277f4 commit 59801ec

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

Test/Unit/Model/Indexer/Order/OrderDataBuilderTest.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,6 @@ private function createOrderMock(
198198
bool $withChildItem = false,
199199
): MockObject {
200200
$order = $this->getMockBuilder(OrderInterface::class)
201-
->disableOriginalConstructor()
202-
->onlyMethods([
203-
'getEntityId', 'getBillingAddress', 'getPayment',
204-
'getGrandTotal', 'getSubtotal', 'getTaxAmount',
205-
'getShippingAmount', 'getDiscountAmount',
206-
'getOrderCurrencyCode', 'getStatus', 'getState',
207-
'getCreatedAt', 'getUpdatedAt', 'getIncrementId',
208-
'getItems', 'getCustomerEmail', 'getShippingDescription',
209-
'getCustomerGroupId', 'getCustomerFirstname',
210-
'getCustomerLastname',
211-
])
212201
->addMethods(['getShippingAddress'])
213202
->getMock();
214203

0 commit comments

Comments
 (0)