Introduce GOVERNANCE document and empty RESOLUTIONS file.
[dbsrgits/DBIx-Class.git] / t / 39load_namespaces_3.t
CommitLineData
c0329273 1BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
2
44930c36 3use strict;
4use warnings;
5use Test::More;
ca507a2f 6use Test::Exception;
7use Test::Warn;
44930c36 8
c0329273 9
d8190011 10use DBICTest; # do not remove even though it is not used
44930c36 11
ca507a2f 12lives_ok (sub {
13 warnings_exist ( sub {
14 package DBICNSTestOther;
a0216b74 15 use base qw/DBICTest::BaseSchema/;
ca507a2f 16 __PACKAGE__->load_namespaces(
17 result_namespace => [ '+DBICNSTest::Rslt', '+DBICNSTest::OtherRslt' ],
18 resultset_namespace => '+DBICNSTest::RSet',
19 );
20 },
93d7452f 21 qr/load_namespaces found ResultSet class 'DBICNSTest::RSet::C' with no corresponding Result class/,
ca507a2f 22 );
23});
44930c36 24
25my $source_a = DBICNSTestOther->source('A');
26isa_ok($source_a, 'DBIx::Class::ResultSource::Table');
27my $rset_a = DBICNSTestOther->resultset('A');
28isa_ok($rset_a, 'DBICNSTest::RSet::A');
44930c36 29
30my $source_b = DBICNSTestOther->source('B');
31isa_ok($source_b, 'DBIx::Class::ResultSource::Table');
32my $rset_b = DBICNSTestOther->resultset('B');
33isa_ok($rset_b, 'DBIx::Class::ResultSet');
f017c022 34
35my $source_d = DBICNSTestOther->source('D');
36isa_ok($source_d, 'DBIx::Class::ResultSource::Table');
ca507a2f 37
38done_testing;