From 4a2d5b83e08a54022e8c8ee40ee4d6e54efa12e8 Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Sun, 22 Nov 2026 17:21:20 +0100 Subject: [PATCH] [TASK] Send order emails with the OrderMailSender in tests Since cart 12.4 sending the emails of an order with the MailHandler triggers a deprecation, which fails the functional tests. The tests enable the feature toggle cart.useNewOrderMailSender, so the emails are sent by the OrderMailSender. Co-Authored-By: Claude Opus 5.5 --- .../Controller/Order/AbstractPaymentControllerTestCase.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tests/Functional/Controller/Order/AbstractPaymentControllerTestCase.php b/Tests/Functional/Controller/Order/AbstractPaymentControllerTestCase.php index ffaa220..425b5d0 100644 --- a/Tests/Functional/Controller/Order/AbstractPaymentControllerTestCase.php +++ b/Tests/Functional/Controller/Order/AbstractPaymentControllerTestCase.php @@ -53,6 +53,11 @@ abstract class AbstractPaymentControllerTestCase extends FunctionalTestCase 'enforceValidation' => false, ], ], + 'SYS' => [ + 'features' => [ + 'cart.useNewOrderMailSender' => true, + ], + ], 'MAIL' => [ 'transport' => 'null', ],