Skip to content

Commit d57d6d9

Browse files
More cleanups and fixes
1 parent 1d71613 commit d57d6d9

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
@@ -149,7 +149,7 @@ public function testQueryForDn()
149149
{
150150
$collection = new \ArrayIterator([new Entry('')]);
151151

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

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

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

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

177177
$this->ldap

0 commit comments

Comments
 (0)