<?php
// $Id$

/**
 * @file
 * Helper module for entity cache tests.
 */

/**
 * Implements hook_watchdog().
 *
 * This function is called during module_enable() and tries to access entity
 * information provided by the module this one depends on. The information is
 * stored in a temporary system variable and is later analyzed in the test
 * case.
 *
 * @see EnableDisableTestCase::testEntityCache()
 */
function entity_cache_test_watchdog() {
  $info = entity_get_info('entity_cache_test');
  variable_set('entity_cache_test', $info);
}
