File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Tests/Authentication/Provider Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -111,16 +111,16 @@ public function testQueryForDn()
111111 ;
112112
113113 $ ldap = $ this ->getMockBuilder (LdapInterface::class)->getMock ();
114+ $ ldap
115+ ->expects ($ this ->at (0 ))
116+ ->method ('bind ' )
117+ ->with ('elsa ' , 'test1234A$ ' );
114118 $ ldap
115119 ->expects ($ this ->once ())
116120 ->method ('escape ' )
117121 ->with ('foo ' , '' )
118122 ->willReturn ('foo ' )
119123 ;
120- $ ldap
121- ->expects ($ this ->at (1 ))
122- ->method ('bind ' )
123- ->with ('elsa ' , 'test1234A$ ' );
124124 $ ldap
125125 ->expects ($ this ->once ())
126126 ->method ('query ' )
@@ -151,16 +151,16 @@ public function testQueryWithUserForDn()
151151 ;
152152
153153 $ ldap = $ this ->getMockBuilder (LdapInterface::class)->getMock ();
154+ $ ldap
155+ ->expects ($ this ->at (0 ))
156+ ->method ('bind ' )
157+ ->with ('elsa ' , 'test1234A$ ' );
154158 $ ldap
155159 ->expects ($ this ->once ())
156160 ->method ('escape ' )
157161 ->with ('foo ' , '' )
158162 ->willReturn ('foo ' )
159163 ;
160- $ ldap
161- ->expects ($ this ->at (1 ))
162- ->method ('bind ' )
163- ->with ('elsa ' , 'test1234A$ ' );
164164 $ ldap
165165 ->expects ($ this ->once ())
166166 ->method ('query ' )
@@ -195,7 +195,7 @@ public function testEmptyQueryResultShouldThrowAnException()
195195
196196 $ ldap = $ this ->getMockBuilder (LdapInterface::class)->getMock ();
197197 $ ldap
198- ->expects ($ this ->at (1 ))
198+ ->expects ($ this ->at (0 ))
199199 ->method ('bind ' )
200200 ->with ('elsa ' , 'test1234A$ ' );
201201 $ ldap
You can’t perform that action at this time.
0 commit comments