Skip to content

Commit 0d17691

Browse files
committed
Fixed tests
1 parent c949c89 commit 0d17691

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/ConnectionTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ public function test_reconnect()
245245

246246
public function test_ldap_operations_can_be_ran_with_connections()
247247
{
248-
$conn = new Connection();
248+
$ldap = $this->newConnectedLdapMock();
249+
$conn = new Connection([], $ldap);
249250

250251
$executed = false;
251252

@@ -261,7 +262,8 @@ public function test_ldap_operations_can_be_ran_with_connections()
261262

262263
public function test_ran_ldap_operations_are_retried_when_connection_is_lost()
263264
{
264-
$conn = new ReconnectConnectionMock();
265+
$ldap = $this->newConnectedLdapMock();
266+
$conn = new ReconnectConnectionMock([], $ldap);
265267

266268
$called = 0;
267269

0 commit comments

Comments
 (0)