5 use lib 't/cdbi/testlib';
9 package # hide from PAUSE
12 use base 'DBIC::Test::SQLite';
15 __PACKAGE__->set_table('Movies');
16 __PACKAGE__->columns(All => qw(id title));
20 id INTEGER PRIMARY KEY AUTOINCREMENT,
26 my $film = MyFilm->create({ title => "For Your Eyes Only" });
29 my $new_film = $film->copy;
31 isnt $new_film->id, $film->id, "copy() gets new primary key";
33 $new_film = $film->copy(42);
34 is $new_film->id, 42, "copy() with new id";