You are here

public function VariableCheckUnitTestCase::testVariableCheckFunctions in Variable Check 7

And we can check functions too.

File

./variablecheck.test, line 137
Tests for Variablecheck.

Class

VariableCheckUnitTestCase
Unit tests for the variablecheck module.

Code

public function testVariableCheckFunctions() {

  // Ensure these functions exist.
  $functions = array(
    'check_variables',
    'check_variables_form',
    'check_variables_form_validate',
    'check_variables_form_submit',
    'delete_confirm',
    'delete_confirm_submit',
  );
  foreach ($functions as $function) {
    $callback = 'variablecheck_' . $function;
    $this
      ->assertTrue(is_callable($callback), 'The ' . $callback . ' function exists and is callable.');
  }
}