You are here

function _encrypt_test_method_dependencies in Encrypt 7.3

Same name and namespace in other branches
  1. 7.2 tests/plugins/encryption_methods/test.inc \_encrypt_test_method_dependencies()

Dependency callback.

Can be forced to trigger failure/success with a variable.

1 string reference to '_encrypt_test_method_dependencies'
test.inc in tests/plugins/encryption_methods/test.inc

File

tests/plugins/encryption_methods/test.inc, line 31

Code

function _encrypt_test_method_dependencies() {
  $errors = array();
  if (variable_get('encrypt_test_trigger_unmet_deps', TRUE)) {
    $errors[] = t('This is an unmet dependency.');
  }
  return $errors;
}