4 use Test::More qw(no_plan);
5 use Data::Dumper; $Data::Dumper::Indent = 1;
7 BEGIN { use_ok 'MTITest'; }
9 my $raw_foo = MTITest->source('Raw::Foo');
12 [ $raw_foo->columns ],
14 'Columns for raw foo ok'
17 my $raw_bar = MTITest->source('Raw::Bar');
20 [ $raw_bar->columns ],
24 ok($raw_bar->has_relationship('parent'), 'parent rel exists');
26 my $parent_info = $raw_bar->relationship_info('parent');
29 $parent_info->{source}, 'Raw::Foo',
30 'parent rel points to raw parent'
33 warn Dumper $raw_bar->_columns;
35 warn Dumper $raw_bar->_relationships;
37 warn Dumper(MTITest->source('JustATable')->_relationships);