Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jekabs Aizpurvs committed Aug 27, 2024
1 parent 0663c74 commit cef2448
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Test/Unit/Service/OrderItemsRequestBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace CM\Payments\Test\Unit\Service;

use CM\Payments\Api\Config\ConfigInterface;
use CM\Payments\Api\Service\OrderItemsRequestBuilderInterface;
use CM\Payments\Client\Model\Request\OrderItemCreate;
use CM\Payments\Client\Request\OrderItemsCreateRequest;
Expand Down Expand Up @@ -363,6 +364,10 @@ protected function setUp(): void
$orderItemsFactoryMock = $this->getMockupFactory(OrderItemCreate::class);
$orderItemsCreateRequestFactoryMock = $this->getMockupFactory(OrderItemsCreateRequest::class);

$config = $this->getMockBuilder(ConfigInterface::class)
->disableOriginalConstructor()
->getMock();

$orderItemRequestParts = [
new OrderItemId(),
new OrderItemSku(),
Expand Down Expand Up @@ -394,6 +399,7 @@ protected function setUp(): void
$this->orderItemsRequestBuilder = new OrderItemsRequestBuilder(
$orderItemsFactoryMock,
$orderItemsCreateRequestFactoryMock,
$config,
$orderItemRequestParts,
$quoteItemRequestParts
);
Expand Down

0 comments on commit cef2448

Please sign in to comment.