public function testPaymentCancelled() { $this->expectsOrderModelCanBeloaded(); $this->datahelper->expects($this->once())->method("getStatusById")->with(self::TRANSACTION_ID)->will($this->returnValue(array('bank_status' => Mollie_Mpm_Model_Api::STATUS_CANCELLED, 'updated_at' => '2014-04-26'))); $this->controller->expects($this->once())->method("_restoreCart"); $this->controller->expects($this->once())->method("_redirect")->with('checkout/onepage/failure', array('_secure' => true)); $this->controller->_construct(); $this->controller->returnAction(); }