You are here

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

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

File

ldap_servers/tests/LdapTestFunctions.class.php, line 48
LdapTestCase.class.php

Class

LdapTestFunctions
@file LdapTestCase.class.php

Code

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