Bug 20167: Regression test

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Tomas Cohen Arazi 2018-03-05 13:35:33 -03:00 committed by Nick Clemens
parent d4e444a01d
commit 00374d0741
1 changed files with 3 additions and 2 deletions

View File

@ -202,7 +202,7 @@ subtest "Test endpoints without permission" => sub {
->status_is(403);
};
subtest "Test endpoints without permission, but accessing own object" => sub {
plan tests => 15;
plan tests => 16;
my $borrno_tmp = $post_data->{'borrowernumber'};
$post_data->{'borrowernumber'} = int $nopermission->{'borrowernumber'};
@ -236,7 +236,8 @@ subtest "Test endpoints without permission, but accessing own object" => sub {
}
)
)
->json_is( '/priority', 2 );
->json_is( '/priority', 2 )
->json_is( '/itemnumber', $itemnumber );
};
subtest "Test endpoints with permission" => sub {