Skip to content

Commit ddc8bb2

Browse files
OskarStarknicolas-grekas
authored andcommitted
Migrate to static data providers using rector/rector
1 parent 7ae6e91 commit ddc8bb2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Tests/Adapter/ExtLdap/EntryManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testMoveWithRFC4514DistinguishedName(string $dn, string $expecte
6868
$this->assertSame($expectedRdn, $cn);
6969
}
7070

71-
public function moveWithRFC4514DistinguishedNameProvider(): array
71+
public static function moveWithRFC4514DistinguishedNameProvider(): array
7272
{
7373
return [
7474
['CN=Simple,DC=example,DC=net', 'CN=Simple'],

Tests/Security/CheckLdapCredentialsListenerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public function testShouldNotCheckPassport($authenticator, $passport)
5959
$listener->onCheckPassport(new CheckPassportEvent($authenticator, $passport));
6060
}
6161

62-
public function provideShouldNotCheckPassport()
62+
public static function provideShouldNotCheckPassport()
6363
{
6464
if (!interface_exists(AuthenticatorInterface::class)) {
65-
$this->markTestSkipped('This test requires symfony/security-http:^5.1');
65+
self::markTestSkipped('This test requires symfony/security-http:^5.1');
6666
}
6767

6868
// no LdapBadge
@@ -108,10 +108,10 @@ public function testWrongPassport($passport)
108108
$listener->onCheckPassport(new CheckPassportEvent(new TestAuthenticator(), $passport));
109109
}
110110

111-
public function provideWrongPassportData()
111+
public static function provideWrongPassportData()
112112
{
113113
if (!interface_exists(AuthenticatorInterface::class)) {
114-
$this->markTestSkipped('This test requires symfony/security-http:^5.1');
114+
self::markTestSkipped('This test requires symfony/security-http:^5.1');
115115
}
116116

117117
// no password credentials

0 commit comments

Comments
 (0)