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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/