Bug 31095: Remove GetDebarments from Borrower_Debarments.t
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 25 Aug 2022 09:16:46 +0000 (10:16 +0100)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Wed, 1 Feb 2023 15:38:41 +0000 (15:38 +0000)
commit9ab60f26aa37f98aea5f0285ea4ff1d2e007267d
tree7da02dc212ecb1923ebd72eb1d6a68e2b833f0f0
parent580a534ad9d952dbc4834acdd674f6104d17a03f
Bug 31095: Remove GetDebarments from Borrower_Debarments.t

This patch replaces calls to GetDebarments with teh
$patron->restritions->search() equivilents.

Test plan
1. Run the test prior to the patch and confirm it passes
2. Run the test after the patch and confirm it passes
3. Confirm no tests were removed

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 52c786205e00afb17d0757483c157387dd229445)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
t/db_dependent/Patron/Borrower_Debarments.t