First stab at restructuring with tests_recursive() - no functional changes
[dbsrgits/DBIx-Class.git] / t / cdbi-t / columns_dont_override_custom_accessors.t
diff --git a/t/cdbi-t/columns_dont_override_custom_accessors.t b/t/cdbi-t/columns_dont_override_custom_accessors.t
deleted file mode 100644 (file)
index 4111b72..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/perl -w
-
-use strict;
-use Test::More;
-
-BEGIN {
-  eval "use DBIx::Class::CDBICompat;";
-  plan $@ ? (skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@")
-          : (tests=> 5);
-}
-
-{
-    package Thing;
-
-    use base 'DBIx::Class::Test::SQLite';
-
-    Thing->columns(TEMP => qw[foo bar]);
-    Thing->columns(All  => qw[thing_id yarrow flower]);
-    sub foo { 42 }
-    sub yarrow { "hock" }
-}
-
-is_deeply( [sort Thing->columns("TEMP")],
-           [sort qw(foo bar)],
-           "TEMP columns set"
-);
-my $thing = Thing->construct(
-    { thing_id => 23, foo => "this", bar => "that" }
-);
-
-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' );