@@ -20,7 +20,7 @@ public function testConnect()
2020 $ ldap_connect ->expects ($ this ->once ())->willReturn ('hello ' );
2121
2222 $ ldap_set_option = $ this ->getFunctionMock ("App \\Models " , "ldap_set_option " );
23- $ ldap_set_option ->expects ($ this ->exactly (3 ));
23+ $ ldap_set_option ->expects ($ this ->exactly (4 ));
2424
2525
2626 $ blah = Ldap::connectToLdap ();
@@ -84,7 +84,7 @@ public function testFindAndBind()
8484 $ ldap_connect ->expects ($ this ->once ())->willReturn ('hello ' );
8585
8686 $ ldap_set_option = $ this ->getFunctionMock ("App \\Models " , "ldap_set_option " );
87- $ ldap_set_option ->expects ($ this ->exactly (3 ));
87+ $ ldap_set_option ->expects ($ this ->exactly (4 ));
8888
8989 $ this ->getFunctionMock ("App \\Models " , "ldap_bind " )->expects ($ this ->once ())->willReturn (true );
9090
@@ -114,7 +114,7 @@ public function testFindAndBindBadPassword()
114114 $ ldap_connect ->expects ($ this ->once ())->willReturn ('hello ' );
115115
116116 $ ldap_set_option = $ this ->getFunctionMock ("App \\Models " , "ldap_set_option " );
117- $ ldap_set_option ->expects ($ this ->exactly (3 ));
117+ $ ldap_set_option ->expects ($ this ->exactly (4 ));
118118
119119 // note - we return FALSE first, to simulate a bad-bind, then TRUE the second time to simulate a successful admin bind
120120 $ this ->getFunctionMock ("App \\Models " , "ldap_bind " )->expects ($ this ->exactly (2 ))->willReturn (false , true );
@@ -135,7 +135,7 @@ public function testFindAndBindCannotFindSelf()
135135 $ ldap_connect ->expects ($ this ->once ())->willReturn ('hello ' );
136136
137137 $ ldap_set_option = $ this ->getFunctionMock ("App \\Models " , "ldap_set_option " );
138- $ ldap_set_option ->expects ($ this ->exactly (3 ));
138+ $ ldap_set_option ->expects ($ this ->exactly (4 ));
139139
140140 $ this ->getFunctionMock ("App \\Models " , "ldap_bind " )->expects ($ this ->once ())->willReturn (true );
141141
@@ -156,7 +156,7 @@ public function testFindLdapUsers()
156156 $ ldap_connect ->expects ($ this ->once ())->willReturn ('hello ' );
157157
158158 $ ldap_set_option = $ this ->getFunctionMock ("App \\Models " , "ldap_set_option " );
159- $ ldap_set_option ->expects ($ this ->exactly (3 ));
159+ $ ldap_set_option ->expects ($ this ->exactly (4 ));
160160
161161 $ this ->getFunctionMock ("App \\Models " , "ldap_bind " )->expects ($ this ->once ())->willReturn (true );
162162
@@ -179,7 +179,7 @@ public function testFindLdapUsersPaginated()
179179 $ ldap_connect ->expects ($ this ->once ())->willReturn ('hello ' );
180180
181181 $ ldap_set_option = $ this ->getFunctionMock ("App \\Models " , "ldap_set_option " );
182- $ ldap_set_option ->expects ($ this ->exactly (3 ));
182+ $ ldap_set_option ->expects ($ this ->exactly (4 ));
183183
184184 $ this ->getFunctionMock ("App \\Models " , "ldap_bind " )->expects ($ this ->once ())->willReturn (true );
185185
0 commit comments