File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -49,27 +49,14 @@ public function testWhenOrganizationCertificateThenSubjectCNAndIdCodeAndCountryC
4949 $ this ->assertEquals ("EE " , CertificateData::getSubjectCountryCode ($ cert ));
5050 }
5151
52- public function testWhenOrganizationCertificateThenSubjectGivenNameAndSurnameAreEmpty (): void
52+ public function testWhenOrganizationCertificateThenSubjectGivenNameAndSurnameAreEmptyAndSubjectCNSucceeds (): void
5353 {
5454 $ cert = Certificates::getOrganizationCert ();
5555 $ givenName = CertificateData::getSubjectGivenName ($ cert );
5656 $ surname = CertificateData::getSubjectSurname ($ cert );
5757 $ this ->assertEmpty ($ givenName );
5858 $ this ->assertEmpty ($ surname );
59- }
60-
61- public function testWhenOrganizationCertificateThenSucceeds (): void
62- {
63- $ cert = Certificates::getOrganizationCert ();
64- $ givenName = CertificateData::getSubjectGivenName ($ cert );
65- $ surname = CertificateData::getSubjectSurname ($ cert );
66- if ($ givenName && $ surname ) {
67- $ principalName = $ givenName . " " . $ surname ;
68- } else {
69- $ principalName = CertificateData::getSubjectCN ($ cert );
70- }
71-
59+ $ principalName = CertificateData::getSubjectCN ($ cert );
7260 $ this ->assertEquals ("Testijad.ee isikutuvastus " , $ principalName );
73-
7461 }
7562}
You can’t perform that action at this time.
0 commit comments