Silence with_deferred_fk_checks() warning on PostgreSQL 9.4
[dbsrgits/DBIx-Class.git] / t / 63register_source.t
CommitLineData
5dfe40b8 1use strict;
2use warnings;
3
4use Test::Exception tests => 1;
5use lib qw(t/lib);
6use DBICTest;
5dfe40b8 7use DBIx::Class::ResultSource::Table;
8
9my $schema = DBICTest->init_schema();
10
11my $foo = DBIx::Class::ResultSource::Table->new({ name => "foo" });
12my $bar = DBIx::Class::ResultSource::Table->new({ name => "bar" });
13
14lives_ok {
15 $schema->register_source(foo => $foo);
16 $schema->register_source(bar => $bar);
17} 'multiple classless sources can be registered';