You are here

protected function D3InfoHandlerTest::enableModule in d3.js 7

Fake enables a module for the purpose of a unit test

Parameters

$name: The module's machine name (i.e. ctools not Chaos Tools)

1 call to D3InfoHandlerTest::enableModule()
D3InfoHandlerTest::setUp in tests/d3_info_handler.test
Sets up unit test environment.

File

tests/d3_info_handler.test, line 44

Class

D3InfoHandlerTest
Tests the library info handlers.

Code

protected function enableModule($name) {
  $modules = module_list();
  $modules[$name] = $name;
  module_list(TRUE, FALSE, FALSE, $modules);
}