You are here

protected function TestRoleConfiguration::isModified in Configuration Management 7.2

Return TRUE if the configuration is modified in the active store.

Overrides ConfigurationHandlerBaseTestCase::isModified

File

tests/handlers/TestRoleConfiguration.test, line 57

Class

TestRoleConfiguration

Code

protected function isModified($config) {
  $modified = FALSE;
  foreach (role_export_roles() as $role) {
    if ($role->machine_name == 'developer') {
      $modified = $role->name == 'Modified';
      break;
    }
  }
  return $modified;
}