From aa28102a94d8e9c61ae7f7896fea2b8badf8db52 Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Mon, 16 Oct 2023 11:14:13 +0200 Subject: [PATCH] test: remove constructor override from product settings hooks test --- .../Unit/Pdk/Hooks/PdkProductSettingsHooksTest.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/tests/Unit/Pdk/Hooks/PdkProductSettingsHooksTest.php b/tests/Unit/Pdk/Hooks/PdkProductSettingsHooksTest.php index 5b7ab8f6a..75f79689c 100644 --- a/tests/Unit/Pdk/Hooks/PdkProductSettingsHooksTest.php +++ b/tests/Unit/Pdk/Hooks/PdkProductSettingsHooksTest.php @@ -9,11 +9,9 @@ use MyParcelNL\Pdk\Facade\Pdk; use MyParcelNL\Pdk\Settings\Model\ProductSettings; use MyParcelNL\Pdk\Shipment\Model\DeliveryOptions; -use MyParcelNL\Pdk\Tests\Bootstrap\MockPdkProductRepository; use MyParcelNL\Pdk\Types\Service\TriStateService; use MyParcelNL\WooCommerce\Tests\Uses\UsesMockWcPdkInstance; use WC_Product; -use function DI\autowire; use function MyParcelNL\Pdk\Tests\usesShared; use function MyParcelNL\WooCommerce\Tests\wpFactory; @@ -37,16 +35,7 @@ function defaultProductSettings(): array ]; } -usesShared( - new UsesMockWcPdkInstance([ - PdkProductRepositoryInterface::class => autowire(MockPdkProductRepository::class)->constructor([ - [ - 'externalIdentifier' => '7000', - 'settings' => defaultProductSettings(), - ], - ]), - ]) -); +usesShared(new UsesMockWcPdkInstance()); it('saves product data correctly', function (array $postData, array $productSettings) { /** @var PdkProductRepositoryInterface $productRepository */