From cbf6e030ecf8e4c9fd1b88120069a88b701fafce Mon Sep 17 00:00:00 2001 From: nesrineabdmouleh Date: Mon, 8 Jul 2024 14:38:20 +0200 Subject: [PATCH 1/2] Add autoupgared campaign to run in nightly --- src/Service/ReportPlaywrightImporter.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Service/ReportPlaywrightImporter.php b/src/Service/ReportPlaywrightImporter.php index 1dd8590..55a1dc2 100644 --- a/src/Service/ReportPlaywrightImporter.php +++ b/src/Service/ReportPlaywrightImporter.php @@ -14,6 +14,7 @@ class ReportPlaywrightImporter extends AbstractReportImporter public const FILTER_CAMPAIGNS = [ 'blockwishlist', 'ps_cashondelivery', + 'autoupgrade', ]; private EntityManagerInterface $entityManager; From d81aa2537f7e605f9e2e84fdb517c1d087312209 Mon Sep 17 00:00:00 2001 From: nesrineabdmouleh Date: Mon, 8 Jul 2024 15:10:20 +0200 Subject: [PATCH 2/2] Fix CI error --- tests/Controller/ImportControllerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Controller/ImportControllerTest.php b/tests/Controller/ImportControllerTest.php index e365609..6ed5ccb 100644 --- a/tests/Controller/ImportControllerTest.php +++ b/tests/Controller/ImportControllerTest.php @@ -298,7 +298,7 @@ public function testReportPlaywrightWithNoValidCampaign(): void $content = $response->getContent(); $content = json_decode($content, true); $this->assertArrayHasKey('message', $content); - $this->assertEquals('The campaign "ps_notAllowedCampaign" is not allowed (blockwishlist, ps_cashondelivery).', $content['message']); + $this->assertEquals('The campaign "ps_notAllowedCampaign" is not allowed (blockwishlist, ps_cashondelivery, autoupgrade).', $content['message']); } public function testReportPlaywrightOk(): void