function RulesIntegrationTestCase::testAccessCallbacks

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

Just makes sure the access callback run without errors.

File

tests/rules.test, line 1399

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);
      }
    }
  }
}