Commit | Line | Data |
d2cee1fa |
1 | use strict; |
a2ed1a5f |
2 | use Test::More; |
d2cee1fa |
3 | |
d9bd5195 |
4 | use lib 't/cdbi/testlib'; |
5 | use DBIC::Test::SQLite; |
d2cee1fa |
6 | |
7 | package A; |
a2ed1a5f |
8 | @A::ISA = qw(DBIx::Class::CDBICompat); |
d2cee1fa |
9 | __PACKAGE__->columns(Primary => 'id'); |
10 | |
11 | package A::B; |
12 | @A::B::ISA = 'A'; |
13 | __PACKAGE__->columns(All => qw(id b1)); |
14 | |
15 | package A::C; |
16 | @A::C::ISA = 'A'; |
17 | __PACKAGE__->columns(All => qw(id c1 c2 c3)); |
18 | |
19 | package main; |
20 | is join (' ', sort A->columns), 'id', "A columns"; |
21 | is join (' ', sort A::B->columns), 'b1 id', "A::B columns"; |
22 | is join (' ', sort A::C->columns), 'c1 c2 c3 id', "A::C columns"; |
d9bd5195 |
23 | |
24 | done_testing; |