function LdapAuthenticationTestCase::testInstall in Lightweight Directory Access Protocol (LDAP) 7
Same name and namespace in other branches
- 8.2 ldap_authentication/tests/ldap_authentication.test \LdapAuthenticationTestCase::testInstall()
- 7.2 ldap_authentication/tests/ldap_authentication.test \LdapAuthenticationTestCase::testInstall()
difficult to test install and uninstall since setUp does module enabling and installing.
File
- ldap_authentication/
tests/ ldap_authentication.test, line 89
Class
Code
function testInstall() {
$sid = 'ldapauthen1';
include drupal_get_path('module', 'ldap_authentication') . '/tests/LdapServerTestData.' . $sid . '.inc';
$testid = $this->module_name . ': setup success';
// just to give warning if setup doesn't succeed. may want to take these out at some point.
$setup_success = module_exists('ldap_authentication') && module_exists('ldap_servers');
$this
->assertTrue($setup_success, ' ldap_authentication setup successful', $testid);
}