You are here

public function LdapTestFunctions::setFakeServerProperty in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.2 ldap_test/LdapTestFunctions.class.php \LdapTestFunctions::setFakeServerProperty()
  2. 7 ldap_servers/tests/LdapTestFunctions.class.php \LdapTestFunctions::setFakeServerProperty()

File

ldap_test/LdapTestFunctions.class.php, line 54

Class

LdapTestFunctions

Code

public function setFakeServerProperty($sid, $prop, $value) {
  $test_data = variable_get('ldap_test_server__' . $sid, []);
  $test_data['properties'][$prop] = $value;
  variable_set('ldap_test_server__' . $sid, $test_data);
}