Added count to test

This commit is contained in:
Finn 2017-09-07 13:26:03 +01:00
parent edac93bef5
commit 54c2b7f64d

View file

@ -33,6 +33,8 @@ for my $count ( 0 .. 29 ) {
} }
} }
is $schema->resultset('Transaction')->count, 87;
#login to admin #login to admin
$t->ua->max_redirects(10); $t->ua->max_redirects(10);
$t->post_ok('/admin', form => { $t->post_ok('/admin', form => {
@ -53,6 +55,8 @@ $t->post_ok("/admin/transactions/1/delete")
->status_is(200)->or($framework->dump_error) ->status_is(200)->or($framework->dump_error)
->content_like(qr/Successfully deleted transaction/); ->content_like(qr/Successfully deleted transaction/);
is $schema->resultset('Transaction')->count, 86;
#Read deleted transaction #Read deleted transaction
$t->get_ok("/admin/transactions/1") $t->get_ok("/admin/transactions/1")
->content_like(qr/No transaction found/); ->content_like(qr/No transaction found/);