Skip to content

Commit 2dc2423

Browse files
committed
Clean skippable tests that are never skipped
1 parent 46fcd1f commit 2dc2423

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
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
}

0 commit comments

Comments
 (0)