4 #----------------------------------------------------------------------
5 # Make sure subclasses can be themselves subclassed
6 #----------------------------------------------------------------------
8 use lib 't/cdbi/testlib';
11 INIT { @Film::Threat::ISA = qw/Film/; }
13 ok(Film::Threat->db_Main->ping, 'subclass db_Main()');
14 is_deeply [ sort Film::Threat->columns ], [ sort Film->columns ],
15 'has the same columns';
17 my $bt = Film->create_test_film;
18 ok my $btaste = Film::Threat->retrieve('Bad Taste'), "subclass retrieve";
19 isa_ok $btaste => "Film::Threat";
20 isa_ok $btaste => "Film";
21 is $btaste->Title, 'Bad Taste', 'subclass get()';