chore: upgrade phpunit to 12.5
This commit is contained in:
1 parent
da039d0527
commit
849da8d471
53 files changed
+832
-856
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user