1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
11 warnings_exist { require DBICTest::ResultSetManager }
13 qr/\QDBIx::Class::ResultSetManager never left experimental status/,
15 'found deprecation warning'
18 my $schema = DBICTest::ResultSetManager->compose_namespace('DB');
19 my $rs = $schema->resultset('Foo');
21 ok( !DB::Foo->can('bar'), 'Foo class does not have bar method' );
22 ok( $rs->can('bar'), 'Foo resultset class has bar method' );
23 isa_ok( $rs, 'DBICTest::ResultSetManager::Foo::_resultset', 'Foo resultset class is correct' );
24 is( $rs->bar, 'good', 'bar method works' );