]> git.koha-community.org Git - koha.git/commit
Bug 23859: Update tests to new style
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 21 Oct 2019 19:12:16 +0000 (16:12 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 1 Nov 2019 08:48:18 +0000 (08:48 +0000)
commit7f1f52f2e52705eacb428916a209d4c05bd9fd9d
treef1a8fc692d94afa62911f35f5154151feffe7c14
parent4de24b70e5d5cd2a4c5808509b6b47855a409dac
Bug 23859: Update tests to new style

The /cities endpoint is refered in several places as the reference
implementation of a route for devs to pick it for copy and pasting. Yet,
it is outdated in terms of how the tests are written.

This patch rewrites some bits so it uses BASIC auth and the built-ins
Test::Mojo provides.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/api/v1/cities.t