Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit b39a08c

Browse files
committed
Fix tests due to new Adldap2 release.
1 parent 7853654 commit b39a08c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/AdldapTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function test_auth_passes($credentials = null)
4747

4848
$connection = $this->getMockConnection();
4949

50-
$connection->expects($this->exactly(2))->method('isBound')->willReturn(true);
50+
$connection->expects($this->exactly(1))->method('isBound')->willReturn(true);
5151

5252
$connection->expects($this->exactly(1))->method('search')->willReturn('resource');
5353

@@ -97,7 +97,7 @@ public function test_auth_fails_when_user_found()
9797

9898
$connection = $this->getMockConnection(['getLastError', 'errNo']);
9999

100-
$connection->expects($this->exactly(2))->method('isBound')->willReturn(true);
100+
$connection->expects($this->exactly(1))->method('isBound')->willReturn(true);
101101

102102
$connection->expects($this->exactly(1))->method('search')->willReturn('resource');
103103

@@ -236,7 +236,7 @@ public function test_config_password_sync_disabled()
236236

237237
$connection = $this->getMockConnection();
238238

239-
$connection->expects($this->exactly(2))->method('isBound')->willReturn(true);
239+
$connection->expects($this->exactly(1))->method('isBound')->willReturn(true);
240240

241241
$connection->expects($this->exactly(1))->method('search')->willReturn('resource');
242242

0 commit comments

Comments
 (0)