X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frun%2F01core.tl;h=41a39418570e8f120bb37b2f93cdcfa37527e914;hb=9bbd8963f80a0ab929350653eb91fa1ae502c47b;hp=ddae2c403e53059eb4ba1174e3b2c58e4088d006;hpb=a953d8d9fc96fd74a0a0fe02af3e1469285d1f50;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/run/01core.tl b/t/run/01core.tl index ddae2c4..41a3941 100644 --- a/t/run/01core.tl +++ b/t/run/01core.tl @@ -71,7 +71,7 @@ $new_again = $schema->resultset("Artist")->find(4); 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'); @@ -110,9 +110,9 @@ $new->insert_or_update; 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'); }; @@ -143,6 +143,8 @@ 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'); }