1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
6 use Test::More tests => 2;
10 use DBICTest::Schema::Artist;
12 DBICTest::Schema::Artist->source_name('MyArtist');
13 DBICTest::Schema->register_class('FooA', 'DBICTest::Schema::Artist');
15 my $schema = DBICTest->init_schema();
17 my $a = $schema->resultset('FooA')->search;
18 is($a->count, 3, 'have 3 artists');
19 is($schema->class('FooA'), 'DBICTest::FooA', 'Correct artist class');
22 DBICTest::Schema->_unregister_source('FooA');