You are here

protected function SimpleLdapTest::setUp in Simple LDAP 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/SimpleLdapTest.php, line 54

Class

SimpleLdapTest
Tests Simple LDAP configuration options.

Namespace

Drupal\Tests\simple_ldap\Functional

Code

protected function setUp() {
  if (!extension_loaded('ldap')) {
    $this
      ->markTestSkipped("Skipping because the PHP LDAP extension is not enabled.");
  }
  parent::setUp();

  // Login as an admin user.
  $this->adminUser = $this
    ->drupalCreateUser($this->permissions);
  $this
    ->drupalLogin($this->adminUser);
}