feeds_ldap_query_fetcher.test in Lightweight Directory Access Protocol (LDAP) 7
File
ldap_feeds/tests/feeds_ldap_query_fetcher.test
View source
<?php
require_once drupal_get_path('module', 'feeds') . '/tests/feeds.test.inc';
class LdapFeedsTestCase extends FeedsWebTestCase {
public function getInfo() {
return array(
'name' => t('Ldap query fetcher'),
'description' => t('Tests for Ldap query fetcher.'),
'group' => t('LDAP'),
);
}
public $testFunctions;
function setUp() {
parent::setUp(array(
'ldap_servers',
));
variable_set('ldap_simpletest', 1);
}
function tearDown() {
parent::tearDown();
variable_del('ldap_simpletest');
}
function prepTestData($testid) {
$this->testFunctions = new LdapTestFunctions();
include drupal_get_path('module', 'ldap_feeds') . '/tests/LdapServerTestData.inc';
$this->testFunctions
->prepTestServers($test_data['servers']);
}
}