You are here

function _amazon_test_random_id in Amazon Product Advertisement API 7.2

Helper function to store random ids used by tests.

Parameters

string $id: The Id to be stored.

Return value

string $id The Id stored.

1 call to _amazon_test_random_id()
AmazonBaseTest::setUp in tests/amazon.base.test
Sets up a Drupal site for running functional and integration tests.

File

tests/amazon_test.module, line 102
Contains amazon_test.module.

Code

function _amazon_test_random_id($id = NULL) {
  static $store;
  if (!is_null($id)) {
    $store = $id;
  }
  return $store;
}