X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F100extra_source.t;h=c5c19bbccc9f1a2b89ebb4a1156f529c6a8411c0;hb=5d77957881710b33a6f3cd8c36014e6a92838763;hp=5c531fd74d7aa1e37637fa444237dc0d9578eb88;hpb=9ffa8fd71f7e3e8c81b785f2e49353af93c13aa9;p=dbsrgits%2FDBIx-Class.git diff --git a/t/100extra_source.t b/t/100extra_source.t index 5c531fd..c5c19bb 100644 --- a/t/100extra_source.t +++ b/t/100extra_source.t @@ -12,7 +12,7 @@ use DBICTest; use base qw/DBIx::Class::ResultSource::Table/; } -plan tests => 3; +plan tests => 4; my $schema = DBICTest->init_schema(); my $artist_source = $schema->source('Artist'); @@ -36,6 +36,12 @@ local $SIG{__WARN__} = sub { $warn = shift }; } { + my $source = $schema->source('DBICTest::Artist'); + $schema->register_source($source->source_name, $source); + is($warn, '', "regregistering an existing source under the same name causes no errors"); +} + +{ my $new_source_name = 'Artist->preview(artist_preview)'; $schema->register_source( $new_source_name => $new_source );