public function testInvalidOrder() { // test if an invalid order gets denied by the validation $cart = new Cart(); $cart->id_customer = null; $cart->id_address_delivery = null; $cart->id_address_invoice = null; $customer = new Customer(); $payments = new Mollie_Testing_Impostor($this->controller); $this->assertFalse($payments->_validate($cart, $customer)); }