You are here

function ModuleBuilderModuleGenerationTestCase::setUp in Module Builder 8.3

Implements setUp().

File

tests/module_builder.test, line 33
Contains tests for the Module builder module.

Class

ModuleBuilderModuleGenerationTestCase
Test case for Module Builder module generation.

Code

function setUp() {
  parent::setUp();

  // Perform the work of module_builder_init().
  include_once dirname(__FILE__) . '/../Factory.php';

  // We rely on our own autoloader, but Drupal's core autoloaders are still
  // registered, and they will run first and crash -- so we remove them.
  // This is a workaround for https://www.drupal.org/node/1916328
  spl_autoload_unregister('drupal_autoload_class');
  spl_autoload_unregister('drupal_autoload_interface');
}