/** * @expectedException Svea\ValidationException * @expectedExceptionMessage No rows has been included. Use function beginOrderRow(), beginShippingfee() or beginInvoiceFee(). * * 2.0 goes directly to DeliverInvoice */ public function testFailOnMissingOrderRowsOnInvoiceDeliver() { $config = Svea\SveaConfig::getDefaultConfig(); $builder = new \Svea\DeliverOrderBuilder($config); $builder->setOrderId('id')->setInvoiceDistributionType('Post'); $object = new \Svea\WebService\DeliverInvoice($builder); $object->prepareRequest(); }