1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
2 use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
9 use lib 't/cdbi/testlib';
12 package # hide from PAUSE
15 use base 'DBIC::Test::SQLite';
18 __PACKAGE__->set_table('Movies');
19 __PACKAGE__->columns(All => qw(id title));
23 id INTEGER PRIMARY KEY AUTOINCREMENT,
29 my $film = MyFilm->create({ title => "For Your Eyes Only" });
32 my $new_film = $film->copy;
34 isnt $new_film->id, $film->id, "copy() gets new primary key";
36 $new_film = $film->copy(42);
37 is $new_film->id, 42, "copy() with new id";