mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
DX: rector apply rules 'symfony up to 4.4
This commit is contained in:
@@ -61,7 +61,7 @@ final class AddressConverterTest extends TestCase
|
||||
|
||||
private function buildAddressConverter(): AddressConverter
|
||||
{
|
||||
$engine = $this->prophesize(EngineInterface::class);
|
||||
$engine = $this->prophesize(\Twig\Environment::class);
|
||||
$translatableStringHelper = $this->prophesize(TranslatableStringHelperInterface::class);
|
||||
$translatableStringHelper->localize(Argument::type('array'))->will(static fn ($args): string => ($args[0] ?? ['fr' => 'not provided'])['fr'] ?? 'not provided');
|
||||
|
||||
|
@@ -64,7 +64,7 @@ final class DefaultShortMessageForCalendarBuilderTest extends TestCase
|
||||
->setMobilenumber($this->phoneNumberUtil->parse('+32470123456', 'BE'))
|
||||
->setAcceptSMS(false);
|
||||
|
||||
$engine = $this->prophesize(EngineInterface::class);
|
||||
$engine = $this->prophesize(\Twig\Environment::class);
|
||||
$engine->render(Argument::exact('@ChillCalendar/CalendarShortMessage/short_message.txt.twig'), Argument::withKey('calendar'))
|
||||
->willReturn('message content')
|
||||
->shouldBeCalledTimes(1);
|
||||
|
Reference in New Issue
Block a user