From f60f35281252887ee4558b092b5857cca5de2bdf Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 30 Oct 2015 08:49:23 +0100 Subject: [PATCH] Bug 13799: Rename t/.../v1/borrowers.t to t/.../v1/patrons.t Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/api/v1/{borrowers.t => patrons.t} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename t/db_dependent/api/v1/{borrowers.t => patrons.t} (90%) diff --git a/t/db_dependent/api/v1/borrowers.t b/t/db_dependent/api/v1/patrons.t similarity index 90% rename from t/db_dependent/api/v1/borrowers.t rename to t/db_dependent/api/v1/patrons.t index ae3e4a4ef8..344cac9a8c 100644 --- a/t/db_dependent/api/v1/borrowers.t +++ b/t/db_dependent/api/v1/patrons.t @@ -46,10 +46,10 @@ my $borrower = $builder->build({ } }); -$t->get_ok('/api/v1/borrowers') +$t->get_ok('/api/v1/patrons') ->status_is(403); -$t->get_ok("/api/v1/borrowers/" . $borrower->{ borrowernumber }) +$t->get_ok("/api/v1/patrons/" . $borrower->{ borrowernumber }) ->status_is(403); my $loggedinuser = $builder->build({ @@ -68,13 +68,13 @@ $session->param('ip', '127.0.0.1'); $session->param('lasttime', time()); $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->env({REMOTE_ADDR => '127.0.0.1'}); $t->request_ok($tx) ->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}); $t->request_ok($tx) ->status_is(200) -- 2.39.5