diff --git a/spec/ViewRepository/Cart/CartViewRepositorySpec.php b/spec/ViewRepository/Cart/CartViewRepositorySpec.php deleted file mode 100644 index 6de5f96e1..000000000 --- a/spec/ViewRepository/Cart/CartViewRepositorySpec.php +++ /dev/null @@ -1,43 +0,0 @@ -beConstructedWith($cartRepository, $cartViewFactory); - } - - function it_is_cart_query(): void - { - $this->shouldImplement(CartViewRepositoryInterface::class); - } - - function it_provides_cart_view( - OrderRepositoryInterface $cartRepository, - CartViewFactoryInterface $cartViewFactory, - OrderInterface $cart, - CartSummaryView $cartView - ): void { - $cartRepository->findOneBy([ - 'tokenValue' => 'ORDERTOKEN', - 'checkoutState' => 'cart', - ])->willReturn($cart); - - $cart->getLocaleCode()->willReturn('en_GB'); - - $cartViewFactory->create($cart, 'en_GB')->willReturn($cartView); - - $this->getOneByToken('ORDERTOKEN')->shouldReturn($cartView); - } -}