public function SimpleLdapServerTest::testConnect in Simple LDAP 8
@covers ::connect
File
- tests/
src/ Unit/ SimpleLdapServerTest.php, line 45 - Contains \Drupal\Tests\simple_ldap\Unit\SimpleLdapServer
Class
- SimpleLdapServerTest
- @coversDefaultClass \Drupal\simple_ldap\SimpleLdapServer @group simple_ldap
Namespace
Drupal\Tests\simple_ldap\UnitCode
public function testConnect() {
$this->ldap
->expects($this
->exactly(2))
->method('connect');
$server = new SimpleLdapServer($this->config_factory, $this->ldap);
$this
->assertTrue($server
->connect());
}