[Koha-bugs] [Bug 18226] New: Remove "use Test::DBIx::Class" instantiations' dangerous code duplication
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Mar 7 17:55:34 CET 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18226
Bug ID: 18226
Summary: Remove "use Test::DBIx::Class" instantiations'
dangerous code duplication
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: gmcharlt at gmail.com
Reporter: olli-antti.kivilahti at jns.fi
QA Contact: testopia at bugs.koha-community.org
Everywhere where Test::DBIx::Class is used, a following blob of code follows:
use Test::DBIx::Class {
schema_class => 'Koha::Schema',
connect_info => ['dbi:SQLite:dbname=:memory:','',''],
connect_opts => { name_sep => '.', quote_char => '`', },
fixture_class => '::Populate',
}, 'SocialData', 'Biblioitem' ;
Instead of duplicating this same code everywhere, use a default configuration
for a Test::DBIx::Class in t/etc/schema.pl
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list