public function testGetCart() { $cartId = 12; $this->quoteRepositoryMock->expects($this->once())->method('get')->with($cartId)->will($this->returnValue($this->quoteMock)); $this->cartMapperMock->expects($this->once())->method('map')->with($this->quoteMock); $this->service->getCart($cartId); }
public function testGetCart() { $cartId = 12; $this->quoteRepositoryMock->expects($this->once())->method('get')->with($cartId)->will($this->returnValue($this->quoteMock)); $this->cartBuilderMock->expects($this->once())->method('setCustomer')->with($this->customerMock); $this->cartBuilderMock->expects($this->once())->method('setTotals')->with($this->totalsMock); $this->cartBuilderMock->expects($this->once())->method('setCurrency')->with($this->currencyMock); $this->cartBuilderMock->expects($this->once())->method('create'); $this->setCartTotalsExpectations(); $this->setCartDataExpectations(); $this->setCurrencyDataExpectations(); $this->setCustomerDataExpectations(); $this->setCartItemTotalsExpectations(); $this->service->getCart($cartId); }