Skip to content

Commit c62e387

Browse files
committed
[Ldap] Add missing security-http dependency
1 parent 256ed08 commit c62e387

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

Tests/Security/CheckLdapCredentialsListenerTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ class CheckLdapCredentialsListenerTest extends TestCase
4141

4242
protected function setUp(): void
4343
{
44-
if (!interface_exists(AuthenticatorInterface::class)) {
45-
$this->markTestSkipped('This test requires symfony/security-http:^5.1');
46-
}
47-
4844
$this->ldap = $this->createMock(LdapInterface::class);
4945
}
5046

@@ -61,10 +57,6 @@ public function testShouldNotCheckPassport($authenticator, $passport)
6157

6258
public function provideShouldNotCheckPassport()
6359
{
64-
if (!interface_exists(AuthenticatorInterface::class)) {
65-
$this->markTestSkipped('This test requires symfony/security-http:^5.1');
66-
}
67-
6860
// no LdapBadge
6961
yield [new TestAuthenticator(), new Passport(new UserBadge('test'), new PasswordCredentials('s3cret'))];
7062

@@ -110,10 +102,6 @@ public function testWrongPassport($passport)
110102

111103
public function provideWrongPassportData()
112104
{
113-
if (!interface_exists(AuthenticatorInterface::class)) {
114-
$this->markTestSkipped('This test requires symfony/security-http:^5.1');
115-
}
116-
117105
// no password credentials
118106
yield [new SelfValidatingPassport(new UserBadge('test'), [new LdapBadge('app.ldap')])];
119107

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@
2222
"ext-ldap": "*"
2323
},
2424
"require-dev": {
25-
"symfony/security-core": "^5.3"
25+
"symfony/security-core": "^5.3",
26+
"symfony/security-http": "^5.2"
2627
},
2728
"conflict": {
2829
"symfony/options-resolver": "<4.4",
29-
"symfony/security-core": "<5.3"
30+
"symfony/security-core": "<5.3",
31+
"symfony/security-http": "<5.2"
3032
},
3133
"autoload": {
3234
"psr-4": { "Symfony\\Component\\Ldap\\": "" },

0 commit comments

Comments
 (0)