Bug 28234: Regression tests

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit e5f43c6868)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Tomas Cohen Arazi 2021-04-27 09:47:43 -03:00 committed by Fridolin Somers
parent e9caf93ad5
commit b70101bfb8
1 changed files with 17 additions and 1 deletions

View File

@ -19,7 +19,9 @@
use Modern::Perl;
use Test::More tests => 13;
use utf8;
use Test::More tests => 14;
use Test::Warn;
use File::Basename qw(dirname);
@ -461,3 +463,17 @@ subtest '->build parameter' => sub {
};
$schema->storage->txn_rollback;
subtest 'build_sample_biblio() tests' => sub {
plan tests => 1;
$schema->storage->txn_begin;
warnings_are
{ $builder->build_sample_biblio({ title => 'hell❤️' }); }
[],
"No encoding warnings!";
$schema->storage->txn_rollback;
};