You are here

function ForumAccessBaseTestCase::dpm in Forum Access 7

Makes Devel's dpm() work inside this test, if Devel is installed.

File

tests/forum_access_test_base.php, line 681
Base class with auxiliary functions for forum access module tests.

Class

ForumAccessBaseTestCase
Base test class for the Forum Access module.

Code

function dpm($input, $name = NULL) {
  if (module_exists('devel') && user_access('access devel information')) {
    $export = kprint_r($input, TRUE, $name);
    $trigger_error = 'trigger_error';
    $trigger_error($export);
  }
}