Bug 43117: Restore use Test::NoWarnings

From
  commit 6cc683b518
  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 <david@davidnind.com>
Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Jonathan Druart 2026-07-21 09:14:05 +02:00 committed by Pedro Amorim
parent e2c90b5750
commit 3934a2bcc0
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 2 additions and 2 deletions

View File

@ -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;