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->executeInternal()); }