From 3934a2bcc070f28f8e0f24a27f35aed9c8e2ffba Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 21 Jul 2026 09:14:05 +0200 Subject: [PATCH] Bug 43117: Restore use Test::NoWarnings From commit 6cc683b518223479f0c427a8305071fbd9581b5e Bug 34776: Unit tests -use Test::NoWarnings; -use Test::More tests => 2; +use Test::More tests => 1; +use Test::MockModule; +#use Test::NoWarnings; Test plan: Apply the first patch prove xt/use-test-no-warnings.t => FAIL Apply this patch prove xt/use-test-no-warnings.t => PASS prove t/Form_MessagingPreferences.t => PASS Signed-off-by: David Nind Signed-off-by: Lisette Scheer Signed-off-by: Pedro Amorim --- t/Form_MessagingPreferences.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/Form_MessagingPreferences.t b/t/Form_MessagingPreferences.t index fc0552ae86..9508e08084 100755 --- a/t/Form_MessagingPreferences.t +++ b/t/Form_MessagingPreferences.t @@ -4,10 +4,10 @@ use Modern::Perl; use CGI; use Template; -use Test::More tests => 1; +use Test::More tests => 2; use Test::MockModule; -#use Test::NoWarnings; +use Test::NoWarnings; use t::lib::TestBuilder; use t::lib::Mocks;