You are here

function ContentAccessACLTestCase::aclModuleEnable in Content Access 5

Enables the ACL module and returns TRUE on success

3 calls to ContentAccessACLTestCase::aclModuleEnable()
ContentAccessACLTestCase::testDeleteAccess in tests/content_access_acl.test
Test Deleting accessibility with permissions for single users
ContentAccessACLTestCase::testEditAccess in tests/content_access_acl.test
Test Editing accessibility with permissions for single users
ContentAccessACLTestCase::testViewAccess in tests/content_access_acl.test
Test Viewing accessibility with permissions for single users

File

tests/content_access_acl.test, line 190

Class

ContentAccessACLTestCase

Code

function aclModuleEnable() {
  if (module_exists('acl')) {
    return TRUE;
  }
  module_enable(array(
    'acl',
  ));
  if (module_exists('acl')) {
    module_disable(array(
      'acl',
    ));

    // Make sure we use drupalModuleEnable(), so the module is disabled again afterwards.
    $this
      ->drupalModuleEnable('acl');
    return TRUE;
  }
  return FALSE;
}