mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix test with new signature of FormatterInterface
This commit is contained in:
parent
65b7ed0755
commit
e1404bf16d
@ -111,7 +111,8 @@ class ExportGeneratorTest extends TestCase
|
||||
'dummy',
|
||||
$formExportData,
|
||||
['dummy_filter' => $formFilterData],
|
||||
['dummy_aggregator' => $formAggregatorData]
|
||||
['dummy_aggregator' => $formAggregatorData],
|
||||
Argument::that(static fn ($context) => $context instanceof ExportGenerationContext && $context->byUser === $user),
|
||||
)
|
||||
->shouldBeCalled()
|
||||
->willReturn(new FormattedExportGeneration('export result', 'text/text'));
|
||||
@ -184,7 +185,8 @@ class ExportGeneratorTest extends TestCase
|
||||
'dummy',
|
||||
$formExportData,
|
||||
[],
|
||||
[]
|
||||
[],
|
||||
Argument::that(static fn ($context) => $context instanceof ExportGenerationContext && $context->byUser === $user),
|
||||
)
|
||||
->shouldBeCalled()
|
||||
->willReturn(new FormattedExportGeneration('export result', 'text/text'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user