Skip to content

Commit 44237bc

Browse files
minor #22813 [Security] do not mock a deprecated interface (xabbuh)
This PR was merged into the 3.2 branch. Discussion ---------- [Security] do not mock a deprecated interface | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22797 (comment) | License | MIT | Doc PR | Commits ------- a920274 do not mock a deprecated interface
2 parents 3aaec6f + a920274 commit 44237bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class LdapBindAuthenticationProviderTest extends TestCase
3232
public function testEmptyPasswordShouldThrowAnException()
3333
{
3434
$userProvider = $this->getMockBuilder('Symfony\Component\Security\Core\User\UserProviderInterface')->getMock();
35-
$ldap = $this->getMockBuilder('Symfony\Component\Ldap\LdapClientInterface')->getMock();
35+
$ldap = $this->getMockBuilder(LdapInterface::class)->getMock();
3636
$userChecker = $this->getMockBuilder('Symfony\Component\Security\Core\User\UserCheckerInterface')->getMock();
3737

3838
$provider = new LdapBindAuthenticationProvider($userProvider, $userChecker, 'key', $ldap);

0 commit comments

Comments
 (0)