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

+4 -6
View File
@@ -44,9 +44,7 @@ class EmailTextMailRenderingTest extends KernelTestCase
EmailTextKey::APPLICATION_FORM_FOLLOW_UP,
];
/**
* @dataProvider provideKeys
*/
#[\PHPUnit\Framework\Attributes\DataProvider('provideKeys')]
public function testTheMailRenders(EmailTextKey $key): void
{
self::bootKernel();
@@ -63,7 +61,7 @@ class EmailTextMailRenderingTest extends KernelTestCase
// Renders the delivered wording: the test environment has no database, and the
// defaults are what a mail falls back to anyway.
$repository = $this->createMock(EmailTextRepository::class);
$repository = $this->createStub(EmailTextRepository::class);
$repository->method('findByKey')->willReturn(null);
$text = (new EmailTextRenderer(
@@ -152,7 +150,7 @@ class EmailTextMailRenderingTest extends KernelTestCase
self::bootKernel();
$container = self::getContainer();
$repository = $this->createMock(EmailTextRepository::class);
$repository = $this->createStub(EmailTextRepository::class);
$repository->method('findByKey')->willReturn(null);
$renderer = new EmailTextRenderer(
@@ -173,7 +171,7 @@ class EmailTextMailRenderingTest extends KernelTestCase
self::bootKernel();
$container = self::getContainer();
$repository = $this->createMock(EmailTextRepository::class);
$repository = $this->createStub(EmailTextRepository::class);
$repository->method('findByKey')->willReturn(null);
$text = (new EmailTextRenderer(
+3 -3
View File
@@ -228,7 +228,7 @@ class EmailTextRendererTest extends KernelTestCase
*/
public function testGivenValuesAreRenderedInsteadOfTheStoredOnes(): void
{
$repository = $this->createMock(EmailTextRepository::class);
$repository = $this->createStub(EmailTextRepository::class);
$repository
->method('findByKey')
->willReturn($this->emailText(subject: 'Gespeichert', body: 'Gespeicherter Text'))
@@ -264,7 +264,7 @@ class EmailTextRendererTest extends KernelTestCase
$renderer = new EmailTextRenderer(
self::getContainer()->get(EmailTextCatalog::class),
$this->createMock(EmailTextRepository::class),
$this->createStub(EmailTextRepository::class),
self::getContainer()->get(MailBodyRenderer::class)
);
@@ -286,7 +286,7 @@ class EmailTextRendererTest extends KernelTestCase
*/
private function render(?EmailText $emailText, array $placeholders): \App\Model\RenderedEmailTextDto
{
$repository = $this->createMock(EmailTextRepository::class);
$repository = $this->createStub(EmailTextRepository::class);
$repository
->method('findByKey')
->willReturn($emailText)