class LdapFeedsTestCase in Lightweight Directory Access Protocol (LDAP) 7
Hierarchy
- class \LdapFeedsTestCase extends \FeedsWebTestCase
Expanded class hierarchy of LdapFeedsTestCase
File
- ldap_feeds/
tests/ feeds_ldap_query_fetcher.test, line 13
View source
class LdapFeedsTestCase extends FeedsWebTestCase {
/**
* Describe this test.
*/
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',
));
// don't need any real servers, configured, just ldap_servers code base
variable_set('ldap_simpletest', 1);
}
function tearDown() {
parent::tearDown();
variable_del('ldap_simpletest');
}
/**
* prepTestData create fake ldap server configuration.
*
* @param string $testid the name of the test. used to determine which configuration file to include
* @return object consumer configuration object (class = LdapAuthorizationConsumerConfAdmin)
*
*/
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']);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LdapFeedsTestCase:: |
public | property | ||
LdapFeedsTestCase:: |
public | function | Describe this test. | |
LdapFeedsTestCase:: |
function | prepTestData create fake ldap server configuration. | ||
LdapFeedsTestCase:: |
function | |||
LdapFeedsTestCase:: |
function |