X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fadmin%2F03data.t;h=05ae0090ad85ecd59a1e7a364a79bbc8802c884d;hb=8273e845426f0187b4ad6c4a1b42286fa09a648f;hp=8bdd5626da1abf51190994ea3790897c3e3df887;hpb=ebcd0e4f2fca6179af13aad39a1b0d36d73fbaff;p=dbsrgits%2FDBIx-Class.git diff --git a/t/admin/03data.t b/t/admin/03data.t index 8bdd562..05ae009 100644 --- a/t/admin/03data.t +++ b/t/admin/03data.t @@ -2,9 +2,10 @@ use strict; use warnings; use Test::More; - use Test::Exception; -use Test::Deep; + +use lib 't/lib'; +use DBICTest; BEGIN { require DBIx::Class; @@ -12,10 +13,7 @@ BEGIN { unless DBIx::Class::Optional::Dependencies->req_ok_for('admin'); } -use lib 't/lib'; -use DBICTest; - -use ok 'DBIx::Class::Admin'; +use_ok 'DBIx::Class::Admin'; { # test data maniplulation functions @@ -47,14 +45,14 @@ use ok 'DBIx::Class::Admin'; $admin->insert('Employee', {name =>'Aran'}); - my $expected_data = [ + my $expected_data = [ [$employee->result_source->columns() ], - [1,1,undef,undef,undef,'Trout'], - [2,2,undef,undef,undef,'Aran'] + [1,1,undef,undef,undef,'Trout',undef], + [2,2,undef,undef,undef,'Aran',undef] ]; my $data; lives_ok { $data = $admin->select('Employee')} 'can retrive data from database'; - cmp_deeply($data, $expected_data, 'DB matches whats expected'); + is_deeply($data, $expected_data, 'DB matches whats expected'); $admin->delete('Employee', {name=>'Trout'}); my $del_rs = $employees->search({name => 'Trout'});