diff --git a/tests/Integration/Customer/Service/CustomerServiceTest.php b/tests/Integration/Customer/Service/CustomerServiceTest.php index 9ae20f25..99d01c68 100644 --- a/tests/Integration/Customer/Service/CustomerServiceTest.php +++ b/tests/Integration/Customer/Service/CustomerServiceTest.php @@ -101,7 +101,7 @@ public function testDeleteCustomerNotPossible(): void $container->get(CustomerRepository::class), $authenticationMock, $legacyServiceMock, - $container->get(Authorization::class) + new Authorization() ); $this->expectException(CustomerNotDeletable::class); diff --git a/tests/Integration/Service/BasketServiceTest.php b/tests/Integration/Service/BasketServiceTest.php index c9b2791a..c881555e 100644 --- a/tests/Integration/Service/BasketServiceTest.php +++ b/tests/Integration/Service/BasketServiceTest.php @@ -9,6 +9,7 @@ namespace OxidEsales\GraphQL\Storefront\Tests\Integration\Service; +use OxidEsales\EshopCommunity\Internal\Transition\Utility\ContextInterface; use TheCodingMachine\GraphQLite\Types\ID; use OxidEsales\EshopCommunity\Internal\Framework\Database\QueryBuilderFactoryInterface; use OxidEsales\EshopCommunity\Internal\Container\ContainerFactory; @@ -58,7 +59,7 @@ public function testGetBasketDeliveryMethodsEvent(): void $container->get(BasketRepository::class), $container->get(Authentication::class), new Authorization(), - $container->get(Legacy::class), + new Legacy($container->get(ContextInterface::class)), $container->get(BasketInfrastructure::class), $container->get(ProductService::class), $container->get(SharedInfrastructure::class),