@@ -56,9 +56,8 @@ public static function dataProviderGetPreAuthenticatedData()
56
56
/**
57
57
* @dataProvider dataProviderGetPreAuthenticatedDataNoUser
58
58
*/
59
- public function testGetPreAuthenticatedDataNoUser ($ emailAddress )
59
+ public function testGetPreAuthenticatedDataNoUser ($ emailAddress, $ credentials )
60
60
{
61
- $ credentials = 'CN=Sample certificate DN/emailAddress= ' .$ emailAddress ;
62
61
$ request = new Request ([], [], [], [], [], ['SSL_CLIENT_S_DN ' => $ credentials ]);
63
62
64
63
$ tokenStorage = $ this ->getMockBuilder ('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface ' )->getMock ();
@@ -76,10 +75,12 @@ public function testGetPreAuthenticatedDataNoUser($emailAddress)
76
75
77
76
public static function dataProviderGetPreAuthenticatedDataNoUser ()
78
77
{
79
- return [
80
- 'basicEmailAddress ' => ['cert@example.com ' ],
81
- 'emailAddressWithPlusSign ' => ['cert+something@example.com ' ],
82
- ];
78
+ yield ['cert@example.com ' , 'CN=Sample certificate DN/emailAddress=cert@example.com ' ];
79
+ yield ['cert+something@example.com ' , 'CN=Sample certificate DN/emailAddress=cert+something@example.com ' ];
80
+ yield ['cert@example.com ' , 'CN=Sample certificate DN,emailAddress=cert@example.com ' ];
81
+ yield ['cert+something@example.com ' , 'CN=Sample certificate DN,emailAddress=cert+something@example.com ' ];
82
+ yield ['cert+something@example.com ' , 'emailAddress=cert+something@example.com,CN=Sample certificate DN ' ];
83
+ yield ['cert+something@example.com ' , 'emailAddress=cert+something@example.com ' ];
83
84
}
84
85
85
86
/**
0 commit comments