Commit f62d41af authored by webchick's avatar webchick

#742972 by klausi, Berdir: Clear entity info cache during module enable. (tests)

parent 7e5787d9
; $Id$
name = "Entity cache test"
description = "Support module for testing entity cache."
package = Testing
version = VERSION
core = 7.x
files[] = entity_cache_test.module
dependencies[] = entity_cache_test_dependency
hidden = TRUE
<?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);
}
; $Id$
name = "Entity cache test dependency"
description = "Support dependency module for testing entity cache."
package = Testing
version = VERSION
core = 7.x
files[] = entity_cache_test_dependency.module
hidden = TRUE
<?php
// $Id$
/**
* @file
* Helper module for entity cache tests.
*/
/**
* Implements hook_entity_info().
*/
function entity_cache_test_dependency_entity_info() {
return array(
'entity_cache_test' => array(
'label' => 'Entity Cache Test',
'base table' => 'entity_cache_test',
),
);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment