You are here

protected function CommerceAutoSkuTest::commerceProductLoadWithReset in Commerce AutoSKU 7

Helper function to load a Commerce product while ensuring the static cache is bypassed.

2 calls to CommerceAutoSkuTest::commerceProductLoadWithReset()
CommerceAutoSkuTest::testCommerceAutoSKUAdvanced in ./commerce_autosku.test
Test the "advanced" features.
CommerceAutoSkuTest::testCommerceAutoSKUUpdates in ./commerce_autosku.test

File

./commerce_autosku.test, line 205
Contains simpletests for commerce_autosku

Class

CommerceAutoSkuTest
@file Contains simpletests for commerce_autosku

Code

protected function commerceProductLoadWithReset($product_id) {
  $products = commerce_product_load_multiple(array(
    $product_id,
  ), array(), TRUE);
  return reset($products);
}