Skip to content

Commit

Permalink
Fix remaining PHPunit deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Apr 30, 2024
1 parent 991818e commit a7216da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/src/TestCase/AuthSource/Ldap/LdapBindTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function testBindSuccesful(): void
$connectionMock = $this->getMockBuilder(Ldap::class)->onlyMethods(
['bind']
)->disableOriginalConstructor()->getMock();
$connectionMock->expects($this->once())->method('bind')->will($this->returnValue(true));
$connectionMock->expects($this->once())->method('bind')->willReturn(true);
$confTest = new TestCase\AuthSource\Ldap\Bind(
new TestData([
'authSourceData' => Configuration::loadFromArray($authSourceData),
Expand Down
2 changes: 1 addition & 1 deletion tests/src/TestCase/AuthSource/Ldap/LdapSearchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function testSearchSuccesful(): void
$connectionMock = $this->getMockBuilder(Ldap::class)->onlyMethods(
['search']
)->disableOriginalConstructor()->getMock();
$connectionMock->expects($this->once())->method('search')->will($this->returnValue($entry));
$connectionMock->expects($this->once())->method('search')->willReturn($entry);
$confTest = new TestCase\AuthSource\Ldap\Search(
new TestData([
'authSourceData' => Configuration::loadFromArray($authSourceData),
Expand Down

0 comments on commit a7216da

Please sign in to comment.