function AAR::validate in Auto Assign Role 6.2
Same name and namespace in other branches
- 6 tests/autoassignrole.test \AAR::validate()
Helper function that compares the edit array to AAR settings
1 call to AAR::validate()
File
- tests/
autoassignrole.test, line 33 - Autoassignrole functionality tests.
Class
- AAR
- @file Autoassignrole functionality tests.
Code
function validate($edit, $title) {
foreach ($edit as $key => $value) {
$this
->assertEqual($value, _autoassignrole_get_settings($key), $title . ': ' . $key . ' was set properly to ' . $value);
}
}