You are here

public function LdapServersTestCase::serverConfCount in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_servers/tests/ldap_servers.test \LdapServersTestCase::serverConfCount()
  2. 7.2 ldap_servers/tests/ldap_servers.test \LdapServersTestCase::serverConfCount()

File

ldap_servers/tests/ldap_servers.test, line 214
simpletest for ldap aservers

Class

LdapServersTestCase

Code

public function serverConfCount() {
  $records = db_query('SELECT * FROM {ldap_servers}')
    ->fetchAllAssoc('sid');
  return count(array_keys($records));
}