You are here

public static function LdapServerTest::getLdapServerObjects in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_test/LdapServerTest.class.php \LdapServerTest::getLdapServerObjects()
  2. 7.2 ldap_test/LdapServerTest.class.php \LdapServerTest::getLdapServerObjects()
1 call to LdapServerTest::getLdapServerObjects()
_ldap_servers_get_simpletest_servers in ldap_servers/ldap_servers.inc
see ldap_servers_get_servers()

File

ldap_servers/tests/LdapServerTest.class.php, line 276
Simpletest ldapServer class for testing without an actual ldap server

Class

LdapServerTest

Code

public static function getLdapServerObjects($sid = NULL, $type = NULL, $class = 'LdapServerTest') {
  $server_ids = variable_get('ldap_test_servers', array());
  $servers = array();
  foreach ($server_ids as $sid => $_sid) {
    $server_data = variable_get('ldap_test_server__' . $sid, array());
    $servers[$sid] = new LdapServerTest($server_data);
  }
  return $servers;
}