1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
10 use DBICTest; # do not remove even though it is not used
13 warnings_exist ( sub {
14 package DBICNSTestOther;
15 use base qw/DBICTest::BaseSchema/;
16 __PACKAGE__->load_namespaces(
17 result_namespace => [ '+DBICNSTest::Rslt', '+DBICNSTest::OtherRslt' ],
18 resultset_namespace => '+DBICNSTest::RSet',
21 qr/load_namespaces found ResultSet class 'DBICNSTest::RSet::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');