X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema.pm;h=1b436f6336d83a6f8cdad558a2628911f56bd2cd;hb=b83736a7d3235d2f50fe5695550eb3637432d960;hp=857c18cdef3289833221cb02c94e9f87333d3631;hpb=a648ec7837aa9e44c2f187699b80e4007c58abbd;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest/Schema.pm b/t/lib/DBICTest/Schema.pm index 857c18c..1b436f6 100644 --- a/t/lib/DBICTest/Schema.pm +++ b/t/lib/DBICTest/Schema.pm @@ -1,25 +1,42 @@ package # hide from PAUSE DBICTest::Schema; -use base qw/DBIx::Class::Schema/; +# load early so that `perl -It/lib -MDBICTest::Schema` keeps working +use ANFANG; -no warnings qw/qw/; +use strict; +use warnings; +no warnings 'qw'; + +use base 'DBICTest::BaseSchema'; + +__PACKAGE__->mk_group_accessors(simple => 'custom_attr'); __PACKAGE__->load_classes(qw/ Artist SequenceTest + BindType Employee CD - FileColumn - Link + Genre Bookmark + Link #dummy Track Tag Year2000CDs + Year1999CDs + CustomSql + Money + TimestampPrimaryKey /, { 'DBICTest::Schema' => [qw/ LinerNotes + Artwork + Artwork_to_Artist + Image + Lyrics + LyricVersion OneKey #dummy TwoKeys @@ -35,10 +52,11 @@ __PACKAGE__->load_classes(qw/ 'ArtistSubclass', 'Producer', 'CD_to_Producer', + 'Dummy', # this is a real result class we remove in the hook below ), - qw/SelfRefAlias TreeLike TwoKeyTreeLike Event EventTZ NoPrimaryKey/, + qw/SelfRefAlias TreeLike TwoKeyTreeLike Event NoPrimaryKey/, qw/Collection CollectionObject TypedObject Owners BooksInLibrary/, - qw/ForceForeign/, + qw/ForceForeign Encoded/, ); sub sqlt_deploy_hook {