You are here

function LdapFeedsTestCase::prepTestData in Lightweight Directory Access Protocol (LDAP) 7

prepTestData create fake ldap server configuration.

Parameters

string $testid the name of the test. used to determine which configuration file to include:

Return value

object consumer configuration object (class = LdapAuthorizationConsumerConfAdmin)

File

ldap_feeds/tests/feeds_ldap_query_fetcher.test, line 47

Class

LdapFeedsTestCase

Code

function prepTestData($testid) {
  $this->testFunctions = new LdapTestFunctions();

  // create fake ldap server configuration instance
  include drupal_get_path('module', 'ldap_feeds') . '/tests/LdapServerTestData.inc';
  $this->testFunctions
    ->prepTestServers($test_data['servers']);
}