8 my $schema = DBICTest->init_schema();
9 my $artist_rs = $schema->resultset ('Artist');
11 my $init_count = $artist_rs->count;
12 ok ($init_count, 'Some artists is database');
14 foreach my $delete_arg (
15 [ { 'me.name' => 'foo' }, { 'me.name' => 'bar' } ],
16 [ 'me.name' => 'foo', 'me.name' => 'bar' ],
18 $artist_rs->populate ([
27 is ($artist_rs->count, $init_count + 2, '2 Artists created');
31 { 'me.artistid' => { '!=', undef } },
36 is ($artist_rs->count, $init_count, 'Correct amount of artists deleted');