DBICTest::Schema::Artist->add_columns(qw/artistid name/);
DBICTest::Schema::Artist->set_primary_key('artistid');
+__PACKAGE__->mk_classdata('field_name_for', {
+ artistid => 'primary key',
+ name => 'artist name',
+});
+
1;
sub run_tests {
-plan tests => 28;
+plan tests => 29;
my @art = DBICTest::Artist->search({ }, { order_by => 'name DESC'});
ok $@, $@;
+is(DBICTest::Artist->field_name_for->{name}, 'artist name', 'mk_classdata usage ok');
+
}
1;