blob: ce9d7eba9130c901baa2992f601c795e14017af6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?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);
}
|