diff --git a/Koha/Encryption.pm b/Koha/Encryption.pm index b18f75a9d4..4cecb6e282 100644 --- a/Koha/Encryption.pm +++ b/Koha/Encryption.pm @@ -61,8 +61,9 @@ sub new { ); } return $class->SUPER::new( - -key => $encryption_key, - -cipher => 'Cipher::AES' + -key => $encryption_key, + -cipher => 'Cipher::AES', + -nodeprecate => 1, ); } diff --git a/t/db_dependent/api/v1/two_factor_auth.t b/t/db_dependent/api/v1/two_factor_auth.t index 1ddc0cd4b5..ddb9178e3a 100755 --- a/t/db_dependent/api/v1/two_factor_auth.t +++ b/t/db_dependent/api/v1/two_factor_auth.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::More tests => 3; +use Test::NoWarnings; use Test::Mojo; use Test::MockModule;