/** * @test */ public function showMiniCartPassesCartToView() { $cart = new \Extcode\Cart\Domain\Model\Cart\Cart([], 0); $this->view->expects(self::once())->method('assign')->with('cart', $cart); $this->subject->showMiniCartAction(); }