Bug 11906: regression test for using DBIC to store & fetch UTF8 strings
authorGalen Charlton <gmc@esilibrary.com>
Wed, 26 Mar 2014 20:26:26 +0000 (20:26 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 27 Mar 2014 14:44:39 +0000 (14:44 +0000)
commitb21d16ca75bb40371773d3008fcb06c67200ab36
tree87065daddd7dc8b56352075eb27f3599065ac920
parent1b0dd7eedebc91fa7178d0d4e0768ebc64b41fd2
Bug 11906: regression test for using DBIC to store & fetch UTF8 strings

This patch adds a regression test for verifying that a
DBIx::Class schema object initialized by Koha database sets up
the database connection to correct store and retrieve UTF8
values as Perl utf8 strings.

To test:

[1] Apply this patch.
[2] Run prove -v t/db_dependent/Koha_Database.t
[3] The test should fail.
[4] Apply the main patch for this bug, then do step 2 again.
[5] The test should pass.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/Koha_Database.t