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()); }
/** * {@inheritdoc} */ public function execute() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'execute'); if (!$pluginInfo) { return parent::execute(); } else { return $this->___callPlugins('execute', func_get_args(), $pluginInfo); } }