Bug 13799: Rename t/.../v1/borrowers.t to t/.../v1/patrons.t
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
d074c77deb
commit
f60f352812
1 changed files with 4 additions and 4 deletions
|
@ -46,10 +46,10 @@ my $borrower = $builder->build({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$t->get_ok('/api/v1/borrowers')
|
$t->get_ok('/api/v1/patrons')
|
||||||
->status_is(403);
|
->status_is(403);
|
||||||
|
|
||||||
$t->get_ok("/api/v1/borrowers/" . $borrower->{ borrowernumber })
|
$t->get_ok("/api/v1/patrons/" . $borrower->{ borrowernumber })
|
||||||
->status_is(403);
|
->status_is(403);
|
||||||
|
|
||||||
my $loggedinuser = $builder->build({
|
my $loggedinuser = $builder->build({
|
||||||
|
@ -68,13 +68,13 @@ $session->param('ip', '127.0.0.1');
|
||||||
$session->param('lasttime', time());
|
$session->param('lasttime', time());
|
||||||
$session->flush;
|
$session->flush;
|
||||||
|
|
||||||
my $tx = $t->ua->build_tx(GET => '/api/v1/borrowers');
|
my $tx = $t->ua->build_tx(GET => '/api/v1/patrons');
|
||||||
$tx->req->cookies({name => 'CGISESSID', value => $session->id});
|
$tx->req->cookies({name => 'CGISESSID', value => $session->id});
|
||||||
$tx->req->env({REMOTE_ADDR => '127.0.0.1'});
|
$tx->req->env({REMOTE_ADDR => '127.0.0.1'});
|
||||||
$t->request_ok($tx)
|
$t->request_ok($tx)
|
||||||
->status_is(200);
|
->status_is(200);
|
||||||
|
|
||||||
$tx = $t->ua->build_tx(GET => "/api/v1/borrowers/" . $borrower->{ borrowernumber });
|
$tx = $t->ua->build_tx(GET => "/api/v1/patrons/" . $borrower->{ borrowernumber });
|
||||||
$tx->req->cookies({name => 'CGISESSID', value => $session->id});
|
$tx->req->cookies({name => 'CGISESSID', value => $session->id});
|
||||||
$t->request_ok($tx)
|
$t->request_ok($tx)
|
||||||
->status_is(200)
|
->status_is(200)
|
Loading…
Reference in a new issue