function EnableDisableTestCase::testEntityInfoCacheWatchdog

Tests entity info cache after enabling a module with a dependency on an entity providing module.

See also

entity_cache_test_watchdog()

File

modules/system/system.test, line 300

Class

EnableDisableTestCase
Test module enabling/disabling functionality.

Code

function testEntityInfoCacheWatchdog() {
    module_enable(array(
        'entity_cache_test',
    ));
    $info = variable_get('entity_cache_test');
    $this->assertEqual($info['label'], 'Entity Cache Test', 'Entity info label is correct.');
    $this->assertEqual($info['controller class'], 'DrupalDefaultEntityController', 'Entity controller class info is correct.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.