From 90e0d3e6a58c025378c59d29f8f69b4fbaec7c8c Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Mon, 23 Mar 2015 16:12:07 +0100 Subject: [PATCH] Bug 13799: Move and fix unit test file --- t/db_dependent/{rest => api/v1}/borrowers.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename t/db_dependent/{rest => api/v1}/borrowers.t (87%) diff --git a/t/db_dependent/rest/borrowers.t b/t/db_dependent/api/v1/borrowers.t similarity index 87% rename from t/db_dependent/rest/borrowers.t rename to t/db_dependent/api/v1/borrowers.t index 73d274d..a86887b 100644 --- a/t/db_dependent/rest/borrowers.t +++ b/t/db_dependent/api/v1/borrowers.t @@ -14,7 +14,7 @@ my $dbh = C4::Context->dbh; $dbh->{AutoCommit} = 0; $dbh->{RaiseError} = 1; -my $t = Test::Mojo->new('Koha::REST'); +my $t = Test::Mojo->new('Koha::REST::V1'); my $categorycode = Koha::Database->new()->schema()->resultset('Category')->first()->categorycode(); my $branchcode = Koha::Database->new()->schema()->resultset('Branch')->first()->branchcode(); @@ -26,10 +26,10 @@ $borrower->surname("Test Surname"); $borrower->store; my $borrowernumber = $borrower->borrowernumber; -$t->get_ok('/borrowers') +$t->get_ok('/v1/borrowers') ->status_is(200); -$t->get_ok("/borrowers/$borrowernumber") +$t->get_ok("/v1/borrowers/$borrowernumber") ->status_is(200) ->json_is('/borrowernumber' => $borrowernumber) ->json_is('/surname' => "Test Surname"); -- 1.7.9.5