Skip to content
Snippets Groups Projects
Commit 8c8c1980 authored by Fabrice Gangler's avatar Fabrice Gangler :art:
Browse files

fix(doctrine/data-fixtures): add native types declarations to all the methods

parent e6f149c2
No related branches found
No related tags found
No related merge requests found
Pipeline #88752 failed
......@@ -53,11 +53,14 @@ public function load(ObjectManager $manager): void
'/OU=SERVICE-DES-SPORS-DE-LA-VILLE-DE-CAUDIES-DE-CONFLENT' .
'/CN=TEST_USER_1_TAJINE@EXAMPLE.ORG'
);
$cert1->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_2));
$cert1->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_1));
$cert1->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_2, 'App\Entity\User'));
$cert1->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_1, 'App\Entity\User'));
$cert1->setRevoked(false);
$cert1->setExpired(false);
$cert1->setAuthority($this->getReference(AppCertificateAuthorityFixtures::CERT_AUTHORITY_1));
$cert1->setAuthority($this->getReference(
AppCertificateAuthorityFixtures::CERT_AUTHORITY_1,
'App\Entity\CertificateAuthority'
));
$cert1->setPublicKey('-----BEGIN CERTIFICATE-----
MIIEqDCCA5CgAwIBAgIURouRx9P5Z/vWL5aaJRz3QOHwZtowDQYJKoZIhvcNAQEL
BQAweTELMAkGA1UEBhMCRlIxFDASBgNVBAcTC01PTlRQRUxMSUVSMSUwIwYDVQQK
......@@ -100,11 +103,14 @@ public function load(ObjectManager $manager): void
'/OU=SERVICE-TECHNIQUE-DE-LA-VILLE-DE-SAINT-ANDRE-DE-BUEGES' .
'/CN=TEST_USER_2_TAJINE@EXAMPLE.ORG'
);
$cert2->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_2));
$cert2->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_2));
$cert2->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_2, 'App\Entity\User'));
$cert2->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_2, 'App\Entity\User'));
$cert2->setRevoked(false);
$cert2->setExpired(false);
$cert2->setAuthority($this->getReference(AppCertificateAuthorityFixtures::CERT_AUTHORITY_1));
$cert2->setAuthority($this->getReference(
AppCertificateAuthorityFixtures::CERT_AUTHORITY_1,
'App\Entity\CertificateAuthority'
));
$cert2->setPublicKey('-----BEGIN CERTIFICATE-----
MIIEoTCCA4mgAwIBAgIUWPPFk41rGGO8VlJSZPvdIgnGC88wDQYJKoZIhvcNAQEL
BQAweTELMAkGA1UEBhMCRlIxFDASBgNVBAcTC01PTlRQRUxMSUVSMSUwIwYDVQQK
......@@ -147,11 +153,14 @@ public function load(ObjectManager $manager): void
'/OU=SERVICE-INFORMATIQUE-DE-CLERMONT-AUVERGNE-METROPOLE' .
'/CN=TEST_USER_3_TAJINE@EXAMPLE.ORG'
);
$cert3->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_1));
$cert3->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_3));
$cert3->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_1, 'App\Entity\User'));
$cert3->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_3, 'App\Entity\User'));
$cert3->setRevoked(false);
$cert3->setExpired(false);
$cert3->setAuthority($this->getReference(AppCertificateAuthorityFixtures::CERT_AUTHORITY_1));
$cert3->setAuthority($this->getReference(
AppCertificateAuthorityFixtures::CERT_AUTHORITY_1,
'App\Entity\CertificateAuthority'
));
$cert3->setPublicKey('-----BEGIN CERTIFICATE-----
MIIEmTCCA4GgAwIBAgIUM73i5vATj6HiS2KbDjxdRPTkOGwwDQYJKoZIhvcNAQEL
BQAweTELMAkGA1UEBhMCRlIxFDASBgNVBAcTC01PTlRQRUxMSUVSMSUwIwYDVQQK
......@@ -194,11 +203,14 @@ public function load(ObjectManager $manager): void
'/OU=DSI' .
'/CN=TEST_USER_4_TAJINE@EXAMPLE.ORG'
);
$cert4->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_1));
$cert4->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_4));
$cert4->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_1, 'App\Entity\User'));
$cert4->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_4, 'App\Entity\User'));
$cert4->setRevoked(false);
$cert4->setExpired(false);
$cert4->setAuthority($this->getReference(AppCertificateAuthorityFixtures::CERT_AUTHORITY_1));
$cert4->setAuthority($this->getReference(
AppCertificateAuthorityFixtures::CERT_AUTHORITY_1,
'App\Entity\CertificateAuthority'
));
$cert4->setPublicKey('-----BEGIN CERTIFICATE-----
MIIEZzCCA0+gAwIBAgIUcxGjMZgYVITnUW+WVf9+W8R1zLkwDQYJKoZIhvcNAQEL
BQAwaTELMAkGA1UEBhMCRlIxFDASBgNVBAcTC01PTlRQRUxMSUVSMREwDwYDVQQK
......@@ -240,11 +252,14 @@ public function load(ObjectManager $manager): void
'/OU=DSI' .
'/CN=TEST_USER_5_TAJINE@EXAMPLE.ORG'
);
$cert5->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_1));
$cert5->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_5));
$cert5->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_1, 'App\Entity\User'));
$cert5->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_5, 'App\Entity\User'));
$cert5->setRevoked(false);
$cert5->setExpired(false);
$cert5->setAuthority($this->getReference(AppCertificateAuthorityFixtures::CERT_AUTHORITY_1));
$cert5->setAuthority($this->getReference(
AppCertificateAuthorityFixtures::CERT_AUTHORITY_1,
'App\Entity\CertificateAuthority'
));
$cert5->setPublicKey('-----BEGIN CERTIFICATE-----
MIIEHTCCAwWgAwIBAgIUaTIjJ6BhDDZNw/5aheDu8/LTvd4wDQYJKoZIhvcNAQEL
BQAwaTELMAkGA1UEBhMCRlIxFDASBgNVBAcTC01PTlRQRUxMSUVSMREwDwYDVQQK
......@@ -285,11 +300,14 @@ public function load(ObjectManager $manager): void
'/OU=DIRECTION-DE-L-INNOVATION-ET-DU-DEVELOPPEMENT-NUMERIQUE' .
'/CN=TEST_USER_6_TAJINE@EXAMPLE.ORG'
);
$cert6->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_1));
$cert6->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_7));
$cert6->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_1, 'App\Entity\User'));
$cert6->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_7, 'App\Entity\User'));
$cert6->setRevoked(false);
$cert6->setExpired(false);
$cert6->setAuthority($this->getReference(AppCertificateAuthorityFixtures::CERT_AUTHORITY_1));
$cert6->setAuthority($this->getReference(
AppCertificateAuthorityFixtures::CERT_AUTHORITY_1,
'App\Entity\CertificateAuthority'
));
$cert6->setPublicKey('-----BEGIN CERTIFICATE-----
MIIEgjCCA2qgAwIBAgIUNABNCfRONVZ+1qu19jMt/PpeXPEwDQYJKoZIhvcNAQEL
BQAwaTELMAkGA1UEBhMCRlIxFDASBgNVBAcTC01PTlRQRUxMSUVSMREwDwYDVQQK
......@@ -332,11 +350,14 @@ public function load(ObjectManager $manager): void
'/OU=DSI' .
'/CN=TEST_USER_7_TAJINE@EXAMPLE.ORG'
);
$cert7->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_2));
$cert7->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_7));
$cert7->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_2, 'App\Entity\User'));
$cert7->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_7, 'App\Entity\User'));
$cert7->setRevoked(false);
$cert7->setExpired(false);
$cert7->setAuthority($this->getReference(AppCertificateAuthorityFixtures::CERT_AUTHORITY_1));
$cert7->setAuthority($this->getReference(
AppCertificateAuthorityFixtures::CERT_AUTHORITY_1,
'App\Entity\CertificateAuthority'
));
$cert7->setPublicKey('-----BEGIN CERTIFICATE-----
MIIEZzCCA0+gAwIBAgIUAcoXxjWuKfbk6TAfVQL9kiS/Ya0wDQYJKoZIhvcNAQEL
BQAwaTELMAkGA1UEBhMCRlIxFDASBgNVBAcTC01PTlRQRUxMSUVSMREwDwYDVQQK
......@@ -378,11 +399,14 @@ public function load(ObjectManager $manager): void
'/OU=FINANCES' .
'/CN=TEST_USER_7_TAJINE@EXAMPLE.ORG'
);
$cert8->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_2));
$cert8->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_8));
$cert8->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_2, 'App\Entity\User'));
$cert8->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_8, 'App\Entity\User'));
$cert8->setRevoked(false);
$cert8->setExpired(false);
$cert8->setAuthority($this->getReference(AppCertificateAuthorityFixtures::CERT_AUTHORITY_1));
$cert8->setAuthority($this->getReference(
AppCertificateAuthorityFixtures::CERT_AUTHORITY_1,
'App\Entity\CertificateAuthority'
));
$cert8->setPublicKey('-----BEGIN CERTIFICATE-----
MIIEZzCCA0+gAwIBAgIUcxGjMZgYVITnUW+WVf9+W8R1zLkwDQYJKoZIhvcNAQEL
BQAwaTELMAkGA1UEBhMCRlIxFDASBgNVBAcTC01PTlRQRUxMSUVSMREwDwYDVQQK
......@@ -424,11 +448,14 @@ public function load(ObjectManager $manager): void
'/OU=21640445900010' .
'/CN=TEST_USER_8_TAJINE@EXAMPLE.ORG'
);
$cert9->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_2));
$cert9->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_8));
$cert9->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_2, 'App\Entity\User'));
$cert9->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_8, 'App\Entity\User'));
$cert9->setRevoked(false);
$cert9->setExpired(false);
$cert9->setAuthority($this->getReference(AppCertificateAuthorityFixtures::CERT_AUTHORITY_1));
$cert9->setAuthority($this->getReference(
AppCertificateAuthorityFixtures::CERT_AUTHORITY_1,
'App\Entity\CertificateAuthority'
));
$cert9->setPublicKey('-----BEGIN CERTIFICATE-----
MIIEUTCCAzmgAwIBAgIUfv1BW+MAQSCYTOF4p+uwydsE6JswDQYJKoZIhvcNAQEL
BQAwaTELMAkGA1UEBhMCRlIxFDASBgNVBAcTC01PTlRQRUxMSUVSMREwDwYDVQQK
......@@ -470,11 +497,14 @@ public function load(ObjectManager $manager): void
'/OU=PILOTAGE-ET-RESSOURCES' .
'/CN=TEST_USER_8_TAJINE@EXAMPLE.ORG'
);
$cert10->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_2));
$cert10->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_8));
$cert10->setCreatedBy($this->getReference(AppUserFixtures::USER_REFERENCE_MANAGER_2, 'App\Entity\User'));
$cert10->setUsedBy($this->getReference(AppUserFixtures::USER_REFERENCE_8, 'App\Entity\User'));
$cert10->setRevoked(false);
$cert10->setExpired(false);
$cert10->setAuthority($this->getReference(AppCertificateAuthorityFixtures::CERT_AUTHORITY_1));
$cert10->setAuthority($this->getReference(
AppCertificateAuthorityFixtures::CERT_AUTHORITY_1,
'App\Entity\CertificateAuthority'
));
$cert10->setPublicKey('-----BEGIN CERTIFICATE-----
MIIEPzCCAyegAwIBAgIUTL0yFSRRpfCde2b6+iji4Nx9T8QwDQYJKoZIhvcNAQEL
BQAwaTELMAkGA1UEBhMCRlIxFDASBgNVBAcTC01PTlRQRUxMSUVSMREwDwYDVQQK
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment