File tree 1 file changed +9
-9
lines changed
Tests/Authentication/Provider 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -111,16 +111,16 @@ public function testQueryForDn()
111
111
;
112
112
113
113
$ ldap = $ this ->getMockBuilder (LdapInterface::class)->getMock ();
114
+ $ ldap
115
+ ->expects ($ this ->at (0 ))
116
+ ->method ('bind ' )
117
+ ->with ('elsa ' , 'test1234A$ ' );
114
118
$ ldap
115
119
->expects ($ this ->once ())
116
120
->method ('escape ' )
117
121
->with ('foo ' , '' )
118
122
->willReturn ('foo ' )
119
123
;
120
- $ ldap
121
- ->expects ($ this ->at (1 ))
122
- ->method ('bind ' )
123
- ->with ('elsa ' , 'test1234A$ ' );
124
124
$ ldap
125
125
->expects ($ this ->once ())
126
126
->method ('query ' )
@@ -151,16 +151,16 @@ public function testQueryWithUserForDn()
151
151
;
152
152
153
153
$ ldap = $ this ->getMockBuilder (LdapInterface::class)->getMock ();
154
+ $ ldap
155
+ ->expects ($ this ->at (0 ))
156
+ ->method ('bind ' )
157
+ ->with ('elsa ' , 'test1234A$ ' );
154
158
$ ldap
155
159
->expects ($ this ->once ())
156
160
->method ('escape ' )
157
161
->with ('foo ' , '' )
158
162
->willReturn ('foo ' )
159
163
;
160
- $ ldap
161
- ->expects ($ this ->at (1 ))
162
- ->method ('bind ' )
163
- ->with ('elsa ' , 'test1234A$ ' );
164
164
$ ldap
165
165
->expects ($ this ->once ())
166
166
->method ('query ' )
@@ -195,7 +195,7 @@ public function testEmptyQueryResultShouldThrowAnException()
195
195
196
196
$ ldap = $ this ->getMockBuilder (LdapInterface::class)->getMock ();
197
197
$ ldap
198
- ->expects ($ this ->at (1 ))
198
+ ->expects ($ this ->at (0 ))
199
199
->method ('bind ' )
200
200
->with ('elsa ' , 'test1234A$ ' );
201
201
$ ldap
You can’t perform that action at this time.
0 commit comments