X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2Fdb_dependent%2Fapi%2Fv1%2Fcities.t;h=ba64c2942042bba58d047600745c46c8d6223047;hb=6aadbcc4be65185a56a79980bea54bc4d74fe356;hp=765fdb71adf0d87b4142b85f296103dd5a77c12d;hpb=b7b4694666657f57aaf61d091ed34c9f754a11e3;p=koha.git diff --git a/t/db_dependent/api/v1/cities.t b/t/db_dependent/api/v1/cities.t index 765fdb71ad..ba64c29420 100644 --- a/t/db_dependent/api/v1/cities.t +++ b/t/db_dependent/api/v1/cities.t @@ -45,8 +45,7 @@ subtest 'list() tests' => sub { $schema->storage->txn_begin; Koha::Cities->search->delete; - my ( $borrowernumber, $session_id ) = - create_user_and_session( { authorized => 0 } ); + my ( $borrowernumber, $session_id ) = create_user_and_session({ authorized => 1 }); ## Authorized user tests # No cities, so empty array should be returned @@ -116,7 +115,7 @@ subtest 'get() tests' => sub { $schema->storage->txn_begin; my $city = $builder->build_object({ class => 'Koha::Cities' }); - my ( $borrowernumber, $session_id ) = create_user_and_session({ authorized => 0 }); + my ( $borrowernumber, $session_id ) = create_user_and_session({ authorized => 1 }); my $tx = $t->ua->build_tx( GET => "/api/v1/cities/" . $city->id ); $tx->req->cookies({ name => 'CGISESSID', value => $session_id });