Skip to content

Commit 33fb604

Browse files
Merge branch '5.4' into 6.2
* 5.4: Migrate to `static` data providers using `rector/rector`
2 parents 698d2df + ddc8bb2 commit 33fb604

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/Adapter/ExtLdap/EntryManagerTest.php

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

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

Tests/Security/CheckLdapCredentialsListenerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testShouldNotCheckPassport($authenticator, $passport)
5555
$listener->onCheckPassport(new CheckPassportEvent($authenticator, $passport));
5656
}
5757

58-
public function provideShouldNotCheckPassport()
58+
public static function provideShouldNotCheckPassport()
5959
{
6060
// no LdapBadge
6161
yield [new TestAuthenticator(), new Passport(new UserBadge('test'), new PasswordCredentials('s3cret'))];
@@ -100,7 +100,7 @@ public function testWrongPassport($passport)
100100
$listener->onCheckPassport(new CheckPassportEvent(new TestAuthenticator(), $passport));
101101
}
102102

103-
public function provideWrongPassportData()
103+
public static function provideWrongPassportData()
104104
{
105105
// no password credentials
106106
yield [new SelfValidatingPassport(new UserBadge('test'), [new LdapBadge('app.ldap')])];
@@ -156,7 +156,7 @@ public function toArray(): array
156156
$listener->onCheckPassport($this->createEvent('s3cr3t', new LdapBadge('app.ldap', $dnString, 'elsa', 'test1234A$', $queryString)));
157157
}
158158

159-
public function queryForDnProvider(): iterable
159+
public static function queryForDnProvider(): iterable
160160
{
161161
yield ['{username}', '{username}_test'];
162162
yield ['{user_identifier}', '{username}_test'];

0 commit comments

Comments
 (0)