You are here

public function SimpleLdapServerTest::serverTypeDataProvider in Simple LDAP 8

File

tests/src/Unit/SimpleLdapServerTest.php, line 251
Contains \Drupal\Tests\simple_ldap\Unit\SimpleLdapServer

Class

SimpleLdapServerTest
@coversDefaultClass \Drupal\simple_ldap\SimpleLdapServer @group simple_ldap

Namespace

Drupal\Tests\simple_ldap\Unit

Code

public function serverTypeDataProvider() {
  return array(
    array(
      'Active Directory',
      array(
        '' => array(
          'rootdomainnamingcontext' => 'is_active_directory',
        ),
      ),
    ),
    array(
      'OpenLDAP',
      array(
        '' => array(
          'objectclass' => array(
            'OpenLDAProotDSE',
            'Another record',
          ),
        ),
      ),
    ),
    array(
      'LDAP',
      array(
        '' => array(
          'nothing' => 'is_default_ldap',
        ),
      ),
    ),
  );
}