diff --git a/src/Bundle/ChillMainBundle/Tests/Export/ExportGeneratorTest.php b/src/Bundle/ChillMainBundle/Tests/Export/ExportGeneratorTest.php index 59e9aef5c..b1d709c79 100644 --- a/src/Bundle/ChillMainBundle/Tests/Export/ExportGeneratorTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Export/ExportGeneratorTest.php @@ -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'));