]> git.koha-community.org Git - koha.git/commit
Bug 37513: Add Koha::RecordSource->usage_count
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 19 Aug 2024 14:35:13 +0000 (11:35 -0300)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 27 Aug 2024 10:14:24 +0000 (12:14 +0200)
commit190205f603a5fa0614de43ddb669427e94518be2
treea73547b48e1ef448efff0b84ad87539dc7a63be0
parent9b0196b7b6f9c11a575bacc96bba6a35b5bfbc5f
Bug 37513: Add Koha::RecordSource->usage_count

This patch adds the `usage_count` method to be used for embedding from
the API. Tests cover all use cases.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/Koha/RecordSource.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/RecordSource.pm
t/db_dependent/Koha/RecordSource.t [new file with mode: 0755]