diff --git a/Koha/Encryption.pm b/Koha/Encryption.pm index faa7dbb3f8..bf8eb262f8 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 3a890c3d65..16bd6aaef8 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;