You are here

public function SimpleLdapServerTest::setUp in Simple LDAP 8

Sets up common service mocks for SimpleLdap unit tests.

Parameters

string $config_name:

Overrides SimpleLdapTestBase::setUp

File

tests/src/Unit/SimpleLdapServerTest.php, line 34
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 setUp() {
  parent::setUp();
  $this->ldap = $this
    ->getMockBuilder('\\Drupal\\simple_ldap\\SimpleLdap')
    ->disableOriginalConstructor()
    ->getMock();
}