X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frun%2F04db.tl;fp=t%2Frun%2F04db.tl;h=452c0b93f8c11259ef2bcc0132c9a2048acb5ca1;hb=a953d8d9fc96fd74a0a0fe02af3e1469285d1f50;hp=e3b5cbb680ef598b3dc9e090c0e9f9e823755450;hpb=a9433341369da32eafd7509f49477b44c84bcbeb;p=dbsrgits%2FDBIx-Class.git diff --git a/t/run/04db.tl b/t/run/04db.tl index e3b5cbb..452c0b9 100644 --- a/t/run/04db.tl +++ b/t/run/04db.tl @@ -1,7 +1,7 @@ sub run_tests { my $schema = shift; -plan tests => 2; +plan tests => 3; # add some rows inside a transaction and commit it # XXX: Is storage->dbh the only way to get a dbh? @@ -28,6 +28,17 @@ $schema->storage->txn_rollback; ($artist) = $schema->resultset("Artist")->search( artistid => 25 ); is($artist, undef, "Rollback ok"); +my $type_info = $schema->storage->columns_info_for('artist'); +my $test_type_info = { + 'artistid' => { + 'data_type' => 'INTEGER' + }, + 'name' => { + 'data_type' => 'VARCHAR' + } +}; +is_deeply($type_info, $test_type_info, 'columns_info_for - column data types'); + } 1;