]> git.koha-community.org Git - koha.git/commit
Bug 28234: TestBuilder->build_sample_biblio should set UTF-8 encoding for record
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 27 Apr 2021 11:24:57 +0000 (08:24 -0300)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 24 May 2021 18:53:10 +0000 (18:53 +0000)
commita9dd867c809642dcd42c6c8d8e5c4b0f81bcbd25
tree4f4b17b941aa707f65f84c758c1dc999f39c7505
parentd13412265aa1b971e28bc6a2b5ca5827d453159f
Bug 28234: TestBuilder->build_sample_biblio should set UTF-8 encoding for record

This patch makes the build_sample_biblio method, correctly set the UTF-8
flag for the MARC::Record object.

Tests are added.

To test:
1. Apply the regression tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/TestBuilder.t
FAIL: Tests fail! An unexpected encoding warning shows
3. Apply this patch
4. Repeat 2
=> SUCCESS: No warning! Tests pass!
5. Sign off :-D

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 8fce3401e75604b36cf0aad2ccb4ce65941e0f55)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit af4c23186bc3f205b4f3d0f2bcde0ab13daac370)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
t/lib/TestBuilder.pm