You are here

function ModuleDependencyTestCase::testProjectNamespaceForDependencies in Drupal 7

Checks functionality of project namespaces for dependencies.

File

modules/system/system.test, line 395
Tests for system.module.

Class

ModuleDependencyTestCase
Test module dependency functionality.

Code

function testProjectNamespaceForDependencies() {

  // Enable module with project namespace to ensure nothing breaks.
  $edit = array(
    'modules[Testing][system_project_namespace_test][enable]' => TRUE,
  );
  $this
    ->drupalPost('admin/modules', $edit, t('Save configuration'));
  $this
    ->assertModules(array(
    'system_project_namespace_test',
  ), TRUE);
}