Added count to test
This commit is contained in:
parent
edac93bef5
commit
54c2b7f64d
1 changed files with 4 additions and 0 deletions
|
@ -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/);
|
||||||
|
|
Reference in a new issue