1 entity.test EntityAPIInfoTestCase::testEntityInfoCacheWatchdog()

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

See also

entity_cache_test_watchdog()

File

core/modules/entity/tests/entity.test, line 91
Entity CRUD API tests.

Class

EntityAPIInfoTestCase
Tests Entity API base functionality.

Code

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