From 44f1eeaabd0d66ef41c273989361d4f028f5fe6b Mon Sep 17 00:00:00 2001 From: mandan2 Date: Tue, 19 Sep 2023 10:13:56 +0300 Subject: [PATCH] fix --- .../Integration/Subscription/Presenter/OrderPresenterTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,