diff --git a/tests/Integration/Subscription/Presenter/OrderPresenterTest.php b/tests/Integration/Subscription/Presenter/OrderPresenterTest.php index a7601cd92..1b3ad9a7a 100644 --- a/tests/Integration/Subscription/Presenter/OrderPresenterTest.php +++ b/tests/Integration/Subscription/Presenter/OrderPresenterTest.php @@ -60,7 +60,8 @@ public function testItSuccessfullyPresentsOrder(): void $order->method('getCartProducts')->willReturn($products); $order->method('getProducts')->willReturn($products); - $orderPresenter = new OrderPresenter(); + /** @var OrderPresenter $orderPresenter */ + $orderPresenter = $this->getService(OrderPresenter::class); $result = $orderPresenter->present( $order,