Working on tests

This commit is contained in:
Hillel Coren 2017-03-26 12:55:47 +03:00
parent 12c7b8ab9f
commit ec613b1d90
2 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class InvoiceItemTransformer extends EntityTransformer
'tax_rate1' => (float) $item->tax_rate1,
'tax_name2' => $item->tax_name2 ? $item->tax_name2 : '',
'tax_rate2' => (float) $item->tax_rate2,
'invoice_item_type_id' => (int) $this->invoice_item_type_id,
'invoice_item_type_id' => (int) $item->invoice_item_type_id,
]);
}
}

View File

@ -82,6 +82,7 @@ class GatewayFeesCest
private function configureLineItemTaxRates($I, $taxName, $taxRate)
{
$taxOption = $taxName . ': ' . number_format($taxRate, 3) . '%';
$I->createTaxRate($I, $taxName, $taxRate);
// set the gateway fee to use line items
$I->amOnPage('/settings/online_payments#fees');