Tests that theme() works right after loading a module.
function testEnableModulesTheme() {
$original_element = $element = array(
'#type' => 'container',
'#markup' => 'Foo',
'#attributes' => array(),
);
$this
->enableModules(array(
'system',
));
// theme() throws an exception if modules are not loaded yet.
$this
->assertTrue(drupal_render($element));
$element = $original_element;
$this
->disableModules(array(
'entity_test',
));
$this
->assertTrue(drupal_render($element));
}