function LdapTestFunctions::prepTestConfiguration in Lightweight Directory Access Protocol (LDAP) 7
File
- ldap_servers/
tests/ LdapTestFunctions.class.php, line 16 - LdapTestCase.class.php
Class
Code
function prepTestConfiguration($test_data, $feetures = FALSE) {
$this
->prepTestServers($test_data['servers'], $feetures);
if (!$feetures && isset($test_data['authentication'])) {
$this
->configureAuthentication($test_data['authentication']);
}
if (!$feetures && isset($test_data['authorization'])) {
$this
->prepConsumerConf($test_data['authorization']);
}
if (!$feetures && isset($test_data['variables'])) {
foreach ($test_data['variables'] as $name => $value) {
variable_set($name, $value);
}
}
//$consumer_conf_admin = ldap_authorization_get_consumer_admin_object('drupal_role');
//$consumer_conf_admin->status = 1;
//$consumer_conf_admin->save();
}