You are here

function ucRecurringTestCase::lastCreatedOrderId in UC Recurring Payments and Subscriptions 6.2

Same name and namespace in other branches
  1. 7.2 uc_recurring.test \ucRecurringTestCase::lastCreatedOrderId()

Returns the last order_id added in the database.

6 calls to ucRecurringTestCase::lastCreatedOrderId()
ucRecurringAPITestCase::testRecurringAdminFunctions in ./uc_recurring.test
Test administrator functions.
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.
ucRecurringTestCase::placeOrderWithRecurringFee in ./uc_recurring.test
place an order for a product with a recurring fee.

... See full list

File

./uc_recurring.test, line 67
UC Recurring simpletest

Class

ucRecurringTestCase
@file UC Recurring simpletest

Code

function lastCreatedOrderId() {
  if ($result = db_query('SELECT max(order_id) FROM {uc_orders}')) {
    return db_result($result);
  }
  return -1;
}