protected function UbercartTaxesTestCase::loadTaxLine in Ubercart 7.3
1 call to UbercartTaxesTestCase::loadTaxLine()
- UbercartTaxesTestCase::testStoredTaxDisplay in uc_taxes/
tests/ uc_taxes.test
File
- uc_taxes/
tests/ uc_taxes.test, line 152 - Tax tests.
Class
- UbercartTaxesTestCase
- Tests the tax functionality.
Code
protected function loadTaxLine($order_id) {
$order = uc_order_load($order_id, TRUE);
foreach ($order->line_items as $line) {
if ($line['type'] == 'tax') {
return $line;
}
}
return FALSE;
}