public function testInvalidQuote() { $this->basicStub($this->quoteMock, 'hasError')->willReturn(true); $expectedPath = 'checkout/cart'; $this->resultRedirectMock->expects($this->once())->method('setPath')->with($expectedPath)->willReturnSelf(); $this->assertSame($this->resultRedirectMock, $this->model->execute()); }
public function testInvalidQuote() { $this->basicStub($this->quoteMock, 'hasError')->willReturn(true); $expectedPath = 'checkout/cart'; $this->redirectMock->expects($this->once())->method('redirect')->with($this->responseMock, $expectedPath, []); $this->model->execute(); }