Koha-clms/t/db_dependent/Koha
Jonathan Druart c89e020e7d
Bug 37845: Remove C4::Members::DeleteExpiredOpacRegistrations
This patch remove the subroutine C4::Members::DeleteExpiredOpacRegistrations.
The code is moved and adjusted to Koha::Patrons.
We now have 2 new methods:
  Koha::Patrons->filter_by_expired_opac_registrations
  Koha::Patrons->filter_by_safe_to_delete

Test plan:
Run the misc/cronjobs/cleanup_database.pl script with the
--del-exp-selfreg (as well as --verbose and --confirm) and confirm that
it behaves as expected

Note that it improve the output of the verbose mode and now tell if the something
is wrong with the config (syspref not set)

Signed-off-by: Sukhmandeep Benipal <sukhmandeep.benipal@inLibro.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-10-21 15:10:31 +02:00
..
Account Bug 28664: (follow-up) Throw exception if debt if VOID 2024-06-28 13:49:19 +02:00
Acquisition Bug 36018: (follow-up) Do not rely on assumed correct quantities 2024-05-10 16:45:47 +02:00
Auth Bug 36503: (follow-up) Fix tests count 2024-05-10 14:11:53 +02:00
BackgroundJob Bug 37526: (QA follow-up) Tidy 2024-09-27 18:00:43 +02:00
BackgroundJobs Bug 34587: (QA follow-up) Tidy 2023-10-31 16:46:32 -03:00
Biblio Bug 37380: Unit tests 2024-09-16 10:41:04 +02:00
Cash
…
Charges
…
Checkouts Bug 33362: Allow return claims to be resolved even if the issue has since been delete from the database 2023-05-24 11:21:31 -03:00
CirculationRules
…
Club
…
Config Bug 32478: (QA follow-up) Shebang and chmod for Koha/Config/SysPrefs.t 2023-06-07 15:25:22 -03:00
Database Bug 33584: Fix failures for Commenter.t on MySQL8 2023-04-24 12:08:00 -03:00
ERM Bug 37810: (QA follow-up) Tidy 2024-10-02 10:17:26 +01:00
Edifact Bug 30070: Add unit tests 2024-01-17 11:38:54 +01:00
Filter Bug 33214: (follow-up) Make tests less fragile 2023-03-13 16:53:25 -03:00
ILL Bug 34597: Add tests 2024-06-11 10:43:56 +01:00
Import Bug 32437: Add replace method to Koha::Import::Record objects 2023-03-31 13:13:26 +02:00
Item
…
Items
…
Library
…
Notice Bug 36815: Unit tests 2024-06-27 14:04:51 +02:00
Object/Mixin Bug 35044: (QA follow-up): DRY code before set_additional_fields 2024-08-23 18:21:26 +02:00
Objects Bug 37389: (QA follow-up) Tidy 2024-08-02 18:59:55 +02:00
Old Bug 35353: Add REST API endpoint to retrieve old holds 2024-04-26 18:06:09 +02:00
Patron Bug 35508: Move logic to Koha::Patron::Attribute::store() 2024-10-18 17:44:18 +02:00
Patrons Bug 34621: Tidy Import.t 2024-04-12 14:02:42 +02:00
Plugins Bug 30047: (follow-up) Fix failing tests 2024-05-13 16:24:18 +02:00
Policy Bug 30825: Move holds_control_library to Koha::Policy::Holds 2023-09-22 12:35:46 -03:00
Preservation Bug 33547: (QA follow-up) Tidy 2023-10-23 11:33:53 -03:00
REST Bug 37902: Add tests 2024-10-18 14:25:59 +02:00
SMTP Bug 33964: Use Email::Sender::Transport::SMTP::Persistent for sending email 2023-07-24 14:55:33 -03:00
SearchEngine Bug 36798: Unit tests 2024-10-21 12:26:12 +02:00
Subscription
…
Tags
…
Template/Plugin Bug 36941: Limit login branch list when IP restriction enabled 2024-06-28 13:49:26 +02:00
Ticket Bug 35657: Unit tests for relation accessor additions 2024-05-02 15:03:36 +02:00
UI/Form/Builder Bug 37870: Fix sort order of class sources 2024-09-12 13:52:35 +02:00
XSLT
…
Z3950Responder Bug 29234: Further clean Z3950 Tests 2023-04-03 10:49:58 -03:00
Account.t Bug 34912: Add 14 hours to 1970 date in Account(s).t 2023-10-04 09:15:39 -04:00
ActionLogs.t
…
AdditionalContents.t Bug 36875: Unit test 2024-06-20 17:55:38 +02:00
AdditionalField.t Bug 35190: Adjust tests 2023-11-03 14:22:46 -03:00
ApiKey.t
…
ArticleRequest.t Bug 35030: Add 'article' to patron activity triggers 2023-10-24 10:05:26 -03:00
ArticleRequests.t Bug 34916: Fix wrong borrowernumber in ArticleRequests.t 2023-10-04 09:15:39 -04:00
Authorities.t Bug 30047: (follow-up) Fix failing tests 2024-05-13 16:24:18 +02:00
BackgroundJob.t Bug 35655: Add unit tests 2024-09-30 15:30:59 +01:00
BackgroundJobs.t Revert "Bug 36217: Fix background jobs page's include_last_hour filter" 2024-10-18 14:26:01 +02:00
Biblio.t Bug 38094: (follow-up) edit_catalogue implies fast_cataloguing 2024-10-11 11:13:45 +02:00
BiblioFrameworks.t
…
Biblios.t Bug 33974: Add Koha::Biblios->api_query_fixer 2023-07-03 14:51:42 -03:00
Booking.t Bug 36915: (follow-up) Add tests 2024-08-27 12:14:20 +02:00
Bookings.t Bug 36428: (QA follow-up) Remove filter_by_future 2024-06-21 15:02:51 +02:00
Checkout.t
…
Checkouts.t Bug 34924: Handle final renewal errors 2023-10-31 11:02:47 -03:00
CirculationRules.t Bug 32271: Unit test 2023-07-19 13:00:37 -03:00
Cities.t
…
ClassSortRules.t
…
ClassSources.t
…
ClassSplitRules.t
…
Course.t Bug 28762: Add test for new 'instructors' accessor 2024-07-23 16:04:06 +01:00
Courses.t Bug 36535: (bug 33568 follow-up) Add missing tests 2024-04-26 14:14:48 +02:00
CoverImages.t
…
CsvProfiles.t
…
CurbsidePickups.t Bug 32891: (QA follow-up) Fix perlcritic error 2023-02-21 10:22:33 -03:00
Database.t
…
Desks.t
…
EDI.t Bug 35398: (QA follow-up) Tidy code 2024-03-07 15:02:47 +01:00
Encryption.t
…
Hold.t Bug 37023: Update timestamp when filling a hold 2024-10-21 12:26:10 +02:00
Holds.t Bug 29087: (QA follow-up): Fix QA tests 2024-07-22 07:36:38 +01:00
Installer.t Bug 37818: (follow-up) Remove failing XXX tests from Installer.t 2024-09-13 16:18:26 +02:00
Item.t Bug 35100: (follow-up) Fix test 2024-09-19 12:41:55 +01:00
ItemTypes.t Bug 34357: Replace SUPER->imageurl in ItemTypes 2023-08-15 12:16:48 +03:00
Items.t Bug 29087: (QA follow-up): Fix QA tests 2024-07-22 07:36:38 +01:00
KeyboardShortcuts.t
…
Libraries.t Bug 9525: (QA follow-up) Tidy 2023-10-04 16:40:12 -04:00
Library.t Bug 36480: Add Koha::Library->desks 2024-04-26 18:06:09 +02:00
MarcOrder.t Bug 35026: (follow-up) Create data for tests and do not rely on state of DB 2024-08-21 19:13:52 +02:00
MarcSubfieldStructures.t
…
Notice_Util.t Bug 33360: Extend Koha::Notice::Util with domain groups 2023-04-14 11:35:30 -03:00
Notices.t
…
Object.t Bug 37902: (QA follow-up) Tidy Query.pm & Object.t 2024-10-18 14:26:00 +02:00
Objects.t Bug 37510: Fix Objects.t and remove FIXME 2024-08-19 14:33:37 +02:00
Old.t
…
Patron.t Bug 37892: (QA follow-up) Add tests for ->is_guarantor/ee 2024-10-18 14:25:52 +02:00
Patron_generate_userid.t Bug 32426: Patron::generate_userid - add plugin hook 2023-03-27 12:49:50 +02:00
Patrons.t Bug 37845: Remove C4::Members::DeleteExpiredOpacRegistrations 2024-10-21 15:10:31 +02:00
Pseudonymization.t Bug 35277: (follow-up) Fix tests 2024-01-16 16:35:08 +01:00
PseudonymizedTransaction.t Bug 34611: Unit tests 2024-03-19 10:25:04 +01:00
Quotes.t
…
Ratings.t Bug 33953: Adjust tests 2023-07-13 15:19:36 -03:00
Recall.t Bug 23781: Tests for Recalls messaging preferences 2024-07-23 16:38:04 +01:00
Recalls.t Bug 32696: Unit tests 2024-08-19 17:29:55 +02:00
RecordSource.t Bug 37513: Add Koha::RecordSource->usage_count 2024-08-27 12:14:24 +02:00
Reports.t Bug 23685: (follow-up) Add export limit for guided reports 2024-09-27 18:00:29 +02:00
Reviews.t Bug 36367: Remove _new_userenv 2024-06-14 11:17:17 +01:00
SMS_Providers.t
…
SearchField.t Bug 20388: (QA follow-up) Tidy 2024-04-16 17:59:47 +02:00
SearchFilters.t Bug 37333: Group search terms in a saved filter 2024-07-18 17:53:11 +02:00
Session.t Bug 36098: (follow-up) extend test to check driver 2024-03-01 10:55:33 +01:00
SharedContent.t
…
Statistic.t Bug 37182: Regression tests 2024-06-27 11:50:02 +02:00
Statistics.t Bug 33608: (QA follow-up) Remove ->insert method 2023-10-25 11:07:59 -03:00
Subscription.t
…
Suggestion.t
…
Suggestions.t Bug 36122: Update unit test 2024-05-02 15:03:33 +02:00
Tags.t
…
Ticket.t Bug 36758: (QA follow-up) Tidy Ticket.t 2024-08-09 18:44:53 +02:00
Virtualshelf.t
…
Virtualshelves.t
…
Z3950Servers.t
…