Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ebc90fb

Browse filesBrowse files
Merge branch '4.4' into 5.0
* 4.4: fix merge
2 parents 4042cc4 + 15d2b77 commit ebc90fb
Copy full SHA for ebc90fb

File tree

Expand file treeCollapse file tree

1 file changed

+9
-9
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-9
lines changed

‎src/Symfony/Component/Security/Core/Tests/Authentication/Provider/LdapBindAuthenticationProviderTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Tests/Authentication/Provider/LdapBindAuthenticationProviderTest.php
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.