Double an existing might_have test as has_one
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / CD.pm
index ec6ab24..80af1df 100644 (file)
@@ -56,6 +56,7 @@ __PACKAGE__->might_have(
     { proxy => [ qw/notes/ ] },
 );
 __PACKAGE__->might_have(artwork => 'DBICTest::Schema::Artwork', 'cd_id');
+__PACKAGE__->has_one(mandatory_artwork => 'DBICTest::Schema::Artwork', 'cd_id');
 
 __PACKAGE__->many_to_many( producers => cd_to_producer => 'producer' );
 __PACKAGE__->many_to_many(