From 4564b8d35d127eed509ff70c5bf3de81525df7a7 Mon Sep 17 00:00:00 2001
From: Tomas Cohen Arazi <tomascohen@theke.io>
Date: Tue, 27 Apr 2021 09:47:43 -0300
Subject: [PATCH] Bug 28234: Regression tests

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
---
 t/db_dependent/TestBuilder.t | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/t/db_dependent/TestBuilder.t b/t/db_dependent/TestBuilder.t
index e2fbba7a9b8..7d07469196b 100755
--- a/t/db_dependent/TestBuilder.t
+++ b/t/db_dependent/TestBuilder.t
@@ -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;
+};
-- 
2.31.1