sub run_tests {
my $schema = shift;
-plan tests => 34;
+plan tests => 36;
my @art = $schema->resultset("Artist")->search({ }, { order_by => 'name DESC'});
is($new_again->name, 'Man With A Spoon', 'Retrieved correctly');
-is($new_again->ID, 'DBICTest::Artist|artistid=4', 'unique object id generated correctly');
+is($new_again->ID, 'DBICTest::Artist|artist|artistid=4', 'unique object id generated correctly');
is($schema->resultset("Artist")->count, 4, 'count ok');
ok($new->in_storage, 'insert_or_update insert ok');
# test in update mode
-$new->position(5);
+$new->pos(5);
$new->insert_or_update;
-is( $schema->resultset("Track")->find(100)->position, 5, 'insert_or_update update ok');
+is( $schema->resultset("Track")->find(100)->pos, 5, 'insert_or_update update ok');
eval { $schema->class("Track")->load_components('DoesNotExist'); };
cmp_ok($or_rs->next->cdid, '==', $rel_rs->next->cdid, 'Related object ok');
+
+ok($schema->storage(), 'Storage available');
+
+$schema->source("Artist")->{_columns}{'artistid'} = {};
+
+my $typeinfo = $schema->source("Artist")->column_info('artistid');
+is($typeinfo->{data_type}, 'INTEGER', 'column_info ok');
}
1;