From 828739edf547e3319febb1d1f40f407bcb9add94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 24 Apr 2025 21:58:18 +0200 Subject: [PATCH] use context where FormatterInterface is in use --- src/Bundle/ChillMainBundle/Test/Export/AbstractFilterTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Test/Export/AbstractFilterTest.php b/src/Bundle/ChillMainBundle/Test/Export/AbstractFilterTest.php index d3e70bf67..ce4f6452c 100644 --- a/src/Bundle/ChillMainBundle/Test/Export/AbstractFilterTest.php +++ b/src/Bundle/ChillMainBundle/Test/Export/AbstractFilterTest.php @@ -258,7 +258,9 @@ abstract class AbstractFilterTest extends KernelTestCase */ public function testDescriptionAction($data) { - $description = $this->getFilter()->describeAction($data); + $context = new ExportGenerationContext((new User())->setLabel('test user')); + + $description = $this->getFilter()->describeAction($data, $context); $this->assertTrue( \is_string($description) || \is_array($description),