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