8 use DBICTest::ForeignComponent;
10 # Tests if foreign component was loaded by calling foreign's method
11 ok( DBICTest::ForeignComponent->foreign_test_method, 'foreign component' );
13 # Test for inject_base to filter out duplicates
14 { package DBICTest::_InjectBaseTest;
15 use base qw/ DBIx::Class /;
16 package DBICTest::_InjectBaseTest::A;
17 package DBICTest::_InjectBaseTest::B;
18 package DBICTest::_InjectBaseTest::C;
20 DBICTest::_InjectBaseTest->inject_base( 'DBICTest::_InjectBaseTest', qw/
21 DBICTest::_InjectBaseTest::A
22 DBICTest::_InjectBaseTest::B
23 DBICTest::_InjectBaseTest::B
24 DBICTest::_InjectBaseTest::C
26 is_deeply( \@DBICTest::_InjectBaseTest::ISA,
28 DBICTest::_InjectBaseTest::A
29 DBICTest::_InjectBaseTest::B
30 DBICTest::_InjectBaseTest::C
33 'inject_base filters duplicates'
36 use_ok('DBIx::Class::AccessorGroup');
37 use_ok('DBIx::Class::Componentised');