function ViewsModuleTest::testViewsThemeModuleTemplates
Tests the dynamic includes of templates via module feature.
File
-
tests/
views_module.test, line 106
Class
- ViewsModuleTest
- Tests basic functions from the Views module.
Code
public function testViewsThemeModuleTemplates() {
$views_status = variable_get('views_defaults', array());
$views_status['frontpage'] = FALSE;
// False is enabled.
variable_set('views_defaults', $views_status);
$existing = array();
$type = array();
$theme = array();
$path = array();
$registry = views_theme($existing, $type, $theme, $path);
$this->assertTrue(isset($registry['views_view__frontpage']));
}