function ucRecurringTestCase::getSingleRecurringFeeFromOrder in UC Recurring Payments and Subscriptions 7.2
Same name and namespace in other branches
- 6.2 uc_recurring.test \ucRecurringTestCase::getSingleRecurringFeeFromOrder()
Get a single recurring fee from the order ID.
3 calls to ucRecurringTestCase::getSingleRecurringFeeFromOrder()
- ucRecurringAPITestCase::testRecurringOrders in ./
uc_recurring.test - Test customer functions of purchasing an order with recurring product.
- ucRecurringIntegrationTestCase::testRecurringPaymentIntegration in ./
uc_recurring.test - place an order with the mock gateway payment module
- ucRecurringPaypalWPSTestCase::testRecurringPaypal in modules/
uc_recurring_hosted/ uc_recurring_hosted.test - Place an order with the Paypal WPS gateway.
File
- ./
uc_recurring.test, line 96 - UC Recurring simpletest
Class
- ucRecurringTestCase
- @file UC Recurring simpletest
Code
function getSingleRecurringFeeFromOrder($order_id) {
$order = uc_order_load($order_id);
$fees = uc_recurring_get_fees($order);
$this
->assertEqual(count($fees), 1, t('Found 1 recurring fee.'));
return array_shift($fees);
}