You are here

function LdapAuthenticationTestCase::testInstall in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_authentication/tests/ldap_authentication.test \LdapAuthenticationTestCase::testInstall()
  2. 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

LdapAuthenticationTestCase

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);
}