Skip to content

Commit 82ac5f2

Browse files
Merge branch '5.1' into 5.2
* 5.1: More cleanups and fixes
2 parents b7c08a2 + d57d6d9 commit 82ac5f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Security/CheckLdapCredentialsListenerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function testQueryForDn()
148148
{
149149
$collection = new \ArrayIterator([new Entry('')]);
150150

151-
$query = $this->getMockBuilder(QueryInterface::class)->getMock();
151+
$query = $this->createMock(QueryInterface::class);
152152
$query->expects($this->once())->method('execute')->willReturn($collection);
153153

154154
$this->ldap
@@ -168,9 +168,9 @@ public function testEmptyQueryResultShouldThrowAnException()
168168
$this->expectException(BadCredentialsException::class);
169169
$this->expectExceptionMessage('The presented username is invalid.');
170170

171-
$collection = $this->getMockBuilder(CollectionInterface::class)->getMock();
171+
$collection = $this->createMock(CollectionInterface::class);
172172

173-
$query = $this->getMockBuilder(QueryInterface::class)->getMock();
173+
$query = $this->createMock(QueryInterface::class);
174174
$query->expects($this->once())->method('execute')->willReturn($collection);
175175

176176
$this->ldap

0 commit comments

Comments
 (0)