First stab at restructuring with tests_recursive() - no functional changes
[dbsrgits/DBIx-Class.git] / t / cdbi / testlib / Film.pm
CommitLineData
c6d74d3e 1package # hide from PAUSE
2 Film;
ea2e61bf 3
ea2e61bf 4use base 'DBIx::Class::Test::SQLite';
5use strict;
6
7__PACKAGE__->set_table('Movies');
8__PACKAGE__->columns('Primary', 'Title');
9__PACKAGE__->columns('Essential', qw( Title ));
10__PACKAGE__->columns('Directors', qw( Director CoDirector ));
11__PACKAGE__->columns('Other', qw( Rating NumExplodingSheep HasVomit ));
12
13sub create_sql {
14 return qq{
15 title VARCHAR(255),
16 director VARCHAR(80),
17 codirector VARCHAR(80),
18 rating CHAR(5),
19 numexplodingsheep INTEGER,
20 hasvomit CHAR(1)
21 }
22}
23
24sub create_test_film {
25 return shift->create({
26 Title => 'Bad Taste',
27 Director => 'Peter Jackson',
28 Rating => 'R',
29 NumExplodingSheep => 1,
30 });
31}
32
33package DeletingFilm;
34
35use base 'Film';
36sub DESTROY { shift->delete }
37
381;
39