1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
10 my $schema = DBICTest->init_schema();
13 my $cd_rs = $schema->resultset('CD')->search ({ genreid => undef }, { columns => [ 'genreid' ]} );
14 my $count = $cd_rs->count;
15 cmp_ok ( $count, '>', 1, 'several CDs with no genre');
17 my @objects = $cd_rs->all;
18 is (scalar @objects, $count, 'Correct amount of objects without limit');
19 isa_ok ($_, 'DBICTest::CD') for @objects;
22 [ map { values %{{$_->get_columns}} } (@objects) ],
24 'All values are indeed undef'
28 isa_ok ($cd_rs->search ({}, { rows => 1 })->single, 'DBICTest::CD');