Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / cdbi / columns_dont_override_custom_accessors.t
index f9bd027..27a96fd 100644 (file)
@@ -1,16 +1,12 @@
 use strict;
+use warnings;
 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 +26,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;