Stop shipping world writeable files in our tarball
[dbsrgits/DBIx-Class-Historic.git] / t / cdbi / 08-inheritcols.t
CommitLineData
d2cee1fa 1use strict;
a2ed1a5f 2use Test::More;
d2cee1fa 3
d9bd5195 4use lib 't/cdbi/testlib';
5use DBIC::Test::SQLite;
d2cee1fa 6
7package A;
a2ed1a5f 8@A::ISA = qw(DBIx::Class::CDBICompat);
d2cee1fa 9__PACKAGE__->columns(Primary => 'id');
10
11package A::B;
12@A::B::ISA = 'A';
13__PACKAGE__->columns(All => qw(id b1));
14
15package A::C;
16@A::C::ISA = 'A';
17__PACKAGE__->columns(All => qw(id c1 c2 c3));
18
19package main;
20is join (' ', sort A->columns), 'id', "A columns";
21is join (' ', sort A::B->columns), 'b1 id', "A::B columns";
22is join (' ', sort A::C->columns), 'c1 c2 c3 id', "A::C columns";
d9bd5195 23
24done_testing;