X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2Fcolumns_dont_override_custom_accessors.t;h=fdff0826b9f8c50403e7f8930713df2e4f33ce67;hb=d9bd5195;hp=f9bd02794e01465e49c261c68e723eb513002875;hpb=50891152d0b24649bfd67bdba97feec86b11c064;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/columns_dont_override_custom_accessors.t b/t/cdbi/columns_dont_override_custom_accessors.t index f9bd027..fdff082 100644 --- a/t/cdbi/columns_dont_override_custom_accessors.t +++ b/t/cdbi/columns_dont_override_custom_accessors.t @@ -1,16 +1,11 @@ use strict; use Test::More; - -BEGIN { - eval "use DBIx::Class::CDBICompat;"; - plan $@ ? (skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@") - : (tests=> 5); -} +use lib 't/cdbi/testlib'; { package Thing; - use base 'DBIx::Class::Test::SQLite'; + use base 'DBIC::Test::SQLite'; Thing->columns(TEMP => qw[foo bar]); Thing->columns(All => qw[thing_id yarrow flower]); @@ -30,3 +25,5 @@ is( $thing->id, 23 ); is( $thing->yarrow, "hock", 'custom accessor not overwritten by column' ); is( $thing->foo, 42, 'custom routine not overwritten by temp column' ); is( $thing->bar, "that", 'temp column accessor generated' ); + +done_testing;