chore: upgrade phpunit to 12.5

This commit is contained in:
fromme committed 2026-10-01 10:07:05 +02:00
1 parent da039d0527
commit 849da8d471
53 files changed
+832 -856

No files matched your search

@@ -79,9 +79,8 @@ class ApplicationFormControllerTest extends WebTestCase
* date element straight to json_encode sends an object, and its keys are the whole diagnosis.
*
* Never the value itself - a rejected payload is still personal data.
*
* @dataProvider unusableBirthDateTypes
*/
#[\PHPUnit\Framework\Attributes\DataProvider('unusableBirthDateTypes')]
public function testARejectionNamesTheShapeThatArrived(mixed $birthDate, string $received): void
{
$this->post(['birthDate' => $birthDate] + $this->payload());
@@ -258,9 +257,7 @@ class ApplicationFormControllerTest extends WebTestCase
$this->assertSame([], $submission->getDetails());
}
/**
* @dataProvider requiredFields
*/
#[\PHPUnit\Framework\Attributes\DataProvider('requiredFields')]
public function testAPayloadMissingARequiredFieldIsRejected(string $field): void
{
$payload = $this->payload();
@@ -277,9 +274,8 @@ class ApplicationFormControllerTest extends WebTestCase
/**
* An empty string is the shape a form posts for a field the visitor left blank, and it is as
* unusable as an absent key - except for eu, where "" is a lawful no and has its own case.
*
* @dataProvider requiredFields
*/
#[\PHPUnit\Framework\Attributes\DataProvider('requiredFields')]
public function testAPayloadWithAnEmptyRequiredFieldIsRejected(string $field): void
{
if ('eu' === $field) {
@@ -315,9 +311,8 @@ class ApplicationFormControllerTest extends WebTestCase
* The one field whose format is nailed down: provisioning parses it as a date, so the day the
* TYPO3 side switches a form back to a free-text birthday has to be a 400 here rather than a
* failure in front of a reviewer weeks later.
*
* @dataProvider unusableBirthDates
*/
#[\PHPUnit\Framework\Attributes\DataProvider('unusableBirthDates')]
public function testAnUnusableBirthDateIsRejected(string $birthDate): void
{
$this->post(['birthDate' => $birthDate] + $this->payload());
@@ -380,9 +375,8 @@ class ApplicationFormControllerTest extends WebTestCase
/**
* Case is the sender's business, not a reason to lose an application: every spelling a form
* can post lands on the same stored value.
*
* @dataProvider genderSpellings
*/
#[\PHPUnit\Framework\Attributes\DataProvider('genderSpellings')]
public function testAGenderIsReadWhateverItsCase(string $posted, string $stored): void
{
$this->post(['gender' => $posted] + $this->payload());