/** * @expectedException Svea\ValidationException * @expectedExceptionMessage -Wrong customer type : PaymentPlanPayment not allowed for Company customer. */ public function testFailOnCompanyPaymentPlanPayment() { $config = SveaConfig::getDefaultConfig(); $code = $this->getGetPaymentPlanParamsForTesting($config); $builder = \WebPay::CreateOrder($config); $order = $builder->addOrderRow(\TestUtil::createHostedOrderRow())->setCountryCode("SE")->setOrderDate("Mon, 15 Aug 05 15:52:01 +0000")->addCustomerDetails(\WebPayItem::companyCustomer()->setNationalIdNumber(4608142222))->usePaymentPlanPayment('5454'); $order = $order->prepareRequest(); }