示例#1
0
 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());
 }
示例#2
0
 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();
 }