You are here

public function RulesIntegrationTestCase::testAccessCallbacks in Rules 7.2

Same name and namespace in other branches
  1. 8.3 d7-tests/rules_integration_test_case.test \RulesIntegrationTestCase::testAccessCallbacks()

Just makes sure the access callback run without errors.

File

tests/rules.test, line 1398
Rules tests.

Class

RulesIntegrationTestCase
Tests provided module integration.

Code

public function testAccessCallbacks() {
  $cache = rules_get_cache();
  foreach (array(
    'action',
    'condition',
    'event',
  ) as $type) {
    foreach (rules_fetch_data($type . '_info') as $name => $info) {
      if (isset($info['access callback'])) {
        $info['access callback']($type, $name);
      }
    }
  }
}