8000 Revert "minor #44175 [Ldap] Add missing security-http dependency (der… · symfony/symfony@5cb4027 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5cb4027

Browse files
Revert "minor #44175 [Ldap] Add missing security-http dependency (derrabus)"
This reverts commit 7e96b12, reversing changes made to 2e950c6.
1 parent 09c18ac commit 5cb4027

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/Symfony/Component/Ldap/Tests/Security/CheckLdapCredentialsListenerTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ 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+
4448
$this->ldap = $this->createMock(LdapInterface::class);
4549
}
4650

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

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

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

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

src/Symfony/Component/Ldap/composer.json

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

0 commit comments

Comments
 (0)
0