X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F60core.t;h=f92159b290128fadf702c3b87ba0f3f0f03f6623;hb=777738d07cfd6055a4f40b944a69329c6995df9a;hp=62299c32294b5b802cb39a16f7b52f776c6157ed;hpb=a5a7bb733a940db710b7408508374833683a2e79;p=dbsrgits%2FDBIx-Class.git diff --git a/t/60core.t b/t/60core.t index 62299c3..f92159b 100644 --- a/t/60core.t +++ b/t/60core.t @@ -130,6 +130,13 @@ throws_ok { is($schema->resultset("Artist")->count, 4, 'count ok'); +# test find on an unresolvable condition +is( + $schema->resultset('Artist')->find({ artistid => [ -and => 1, 2 ]}), + undef +); + + # test find_or_new { my $existing_obj = $schema->resultset('Artist')->find_or_new({