You are here

function mongodb_simpletest_alter in MongoDB 8

Implements hook_simpletest_alter().

File

./mongodb.module, line 41
MongoDB core module.

Code

function mongodb_simpletest_alter(&$groups) {
  unset($groups['Views']);
  array_walk($groups, function (&$info) {
    foreach (array_keys($info) as $class_name) {
      if (preg_match('/(^|\\\\)Views(\\\\|$)/', $class_name) || stripos($class_name, 'sql') !== FALSE || stripos($class_name, 'nodeaccess') !== FALSE) {
        unset($info[$class_name]);
      }
    }
  });
}