8 use DBICTest; # do not remove even though it is not used
14 local $SIG{__WARN__} = sub { $warnings .= shift };
15 package DBICNSTestOther;
16 use base qw/DBIx::Class::Schema/;
17 __PACKAGE__->load_namespaces(
18 result_namespace => [ '+DBICNSTest::Rslt', '+DBICNSTest::OtherRslt' ],
19 resultset_namespace => '+DBICNSTest::RSet',
23 like($warnings, qr/load_namespaces found ResultSet class C with no corresponding Result class/);
25 my $source_a = DBICNSTestOther->source('A');
26 isa_ok($source_a, 'DBIx::Class::ResultSource::Table');
27 my $rset_a = DBICNSTestOther->resultset('A');
28 isa_ok($rset_a, 'DBICNSTest::RSet::A');
30 my $source_b = DBICNSTestOther->source('B');
31 isa_ok($source_b, 'DBIx::Class::ResultSource::Table');
32 my $rset_b = DBICNSTestOther->resultset('B');
33 isa_ok($rset_b, 'DBIx::Class::ResultSet');
35 my $source_d = DBICNSTestOther->source('D');
36 isa_ok($source_d, 'DBIx::Class::ResultSource::Table');