Bug 35218: Add unit tests for the counter registry API
authorMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Mon, 6 Nov 2023 14:14:45 +0000 (14:14 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 8 Nov 2023 12:58:54 +0000 (09:58 -0300)
commit6e7059c8a2945f1ab5cfebc9ed032f5c696fb385
treed348ea163e7ceedea9e0714d532a5025474c0250
parenta61c344e332dede8165a457cd66f0ea0d49bc09c
Bug 35218: Add unit tests for the counter registry API

This patch adds two unit tests to cover the integration with the Counter Registry API in the Usage Statistics module. This is to prevent regressions caused either by changes to the Koha endpoint, or by changes to the Counter Registry API that might require changes in Koha to handle.

Test plan:
1) prove t/db_dependent/api/v1/erm_counter_registries.t
2) prove t/db_dependent/api/v1/erm_sushi_services.t

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue
t/db_dependent/api/v1/erm_counter_registries.t [new file with mode: 0644]
t/db_dependent/api/v1/erm_sushi_services.t [new file with mode: 0644]