Koha-clms/t/db_dependent/Koha
Kyle M Hall 722d2457f6
Bug 39214: Mock preferences in t/db_dependent/Koha/Session.t for subtest 'test session driver'
The "test session driver" unit test assume SessionStorage is set to MySQL and will fail if it is set to anything else. We should mock the values, and test the other supported values.

Test Plan:
1) Set SessionStorage to File
2) prove t/db_dependent/Koha/Session.t
3) Note test failure
4) prove t/db_dependent/Koha/Session.t
5) Tests pass!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit b66ccc1258)
Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
2025-08-06 15:07:37 +00:00
..
Account Bug 33641: (follow-up) Fix unit tests 2024-11-15 14:02:20 +01:00
Acquisition Bug 36018: (follow-up) Do not rely on assumed correct quantities 2024-05-10 16:45:47 +02:00
Auth Bug 40019: Remove warnings from Koha/Auth/Client.t 2025-07-25 13:49:55 +02:00
BackgroundJob Bug 37526: (QA follow-up) Tidy 2024-09-27 18:00:43 +02:00
BackgroundJobs Bug 39823: Add tests 2025-06-19 09:39:14 +02:00
Biblio Bug 28478: Add get_opac_suppression extractor 2025-02-18 19:17:20 +01:00
Cash
…
Charges
…
Checkouts
…
CirculationRules
…
Club
…
Config
…
Database
…
ERM Bug 38782: Apply same fix for CounterFile.t 2025-03-19 23:57:35 +01:00
Edifact Bug 30070: Add unit tests 2024-01-17 11:38:54 +01:00
Filter
…
ILL Bug 32630: Add tests 2025-07-09 14:18:18 +00:00
Import
…
Item
…
Items
…
Library
…
Notice Bug 36815: Unit tests 2024-06-27 14:04:51 +02:00
OAI/Server Bug 39857: Regression tests 2025-05-17 21:05:56 +02:00
Object/Mixin Bug 38528: (QA follow-up) Add tests for set_additional_fields with marcfield_mode = 'get' 2025-08-06 09:57:01 +00:00
Objects Bug 37389: (QA follow-up) Tidy 2024-08-02 18:59:55 +02:00
Old Bug 33284: (follow-up) Fix unit tests 2025-08-04 10:13:04 +02:00
Patron Bug 40429: Remove warnings from Koha/Patron/Modifications.t 2025-08-01 15:08:51 +02:00
Patrons Bug 40380: Remove warnings from Patrons/Import.t - Argument "" isn't numeric in numeric eq (==) 2025-08-01 11:48:26 +02:00
Plugins Bug 36433: (follow-up) Include required library 2025-08-04 12:27:01 +02:00
Policy
…
Preservation
…
REST Bug 28907: Add Koha::REST::Plugin::Auth::PublicRoutes 2025-02-18 19:17:17 +01:00
SMTP
…
SearchEngine Bug 40381: Remove warning from Koha/SearchEngine/Elasticsearch/ExportConfig.t 2025-08-01 15:24:58 +02:00
Subscription
…
Tags
…
Template/Plugin Bug 40018: Remove warnings from Koha/Template/Plugin/Koha.t 2025-07-25 13:54:04 +02:00
Ticket Bug 35657: Unit tests for relation accessor additions 2024-05-02 15:03:36 +02:00
UI/Form/Builder Bug 40003: Add a test 2025-07-25 14:00:41 +02:00
XSLT
…
Z3950Responder
…
Account.t
…
ActionLogs.t
…
AdditionalContents.t Bug 40020: Remove warnings from Koha/AdditionalContents.t 2025-07-25 13:49:01 +02:00
AdditionalField.t
…
ApiKey.t
…
ArticleRequest.t Bug 36081: Fix some failing tests 2025-02-24 20:43:23 +01:00
ArticleRequests.t
…
Authorities.t Bug 30047: (follow-up) Fix failing tests 2024-05-13 16:24:18 +02:00
BackgroundJob.t Bug 34070: Add tests 2025-08-04 10:29:32 +02: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 35246: Unit tests 2025-08-06 13:25:36 +00:00
BiblioFrameworks.t
…
Biblios.t
…
Booking.t Bug 40374: Remove warnings from Koha/Booking.t 2025-08-01 15:29:59 +02:00
Bookings.t Bug 38175: (QA follow-up) Unit test for filter_by_active change 2024-10-24 18:27:25 +02:00
Checkout.t Bug 33284: (follow-up) Fix unit tests 2025-08-04 10:13:04 +02:00
Checkouts.t Bug 33641: (follow-up) Fix unit tests 2024-11-15 14:02:20 +01:00
CirculationRules.t
…
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
…
Database.t Bug 36026: Use only configured TLS options for database connection 2024-11-11 15:35:36 +01:00
Desks.t
…
EDI.t Bug 38423: Add unit tests 2025-04-17 14:30:35 +02:00
Encryption.t
…
Hold.t Bug 40347: Remove warnings from Koha/Hold.t 2025-07-31 16:49:41 +02:00
Holds.t Bug 29087: (QA follow-up): Fix QA tests 2024-07-22 07:36:38 +01:00
Installer.t Bug 40437: Remove warning from Koha/Installer.t 2025-08-01 15:04:53 +02:00
Item.t Bug 39932: Make Koha::Item->_status return an arrayref 2025-08-01 10:24:28 +02:00
ItemTypes.t
…
Items.t Bug 37334: [24.11] Allow filter holdings table by status (squashed) 2025-08-01 10:22:42 +02:00
KeyboardShortcuts.t
…
Libraries.t
…
Library.t Bug 36480: Add Koha::Library->desks 2024-04-26 18:06:09 +02:00
MarcOrder.t Bug 39282: (follow-up) Use generated budget and don't rely on existing data 2025-03-19 23:57:59 +01:00
MarcSubfieldStructures.t
…
Notice_Util.t
…
Notices.t Bug 23295: Automatically restrict (debar) patrons when email/sms notices fail 2024-10-24 10:45:38 +02:00
OAIHarvester.t Bug 35659: (QA follow-up) Fix t/db_dependent/Koha/OAIHarvester.t 2024-10-29 16:14:45 +01:00
OAIServers.t Bug 35659: (more QA follow-ups) 2024-10-28 14:01:29 +01:00
Object.t Bug 38273: Make sure same object is returned 2024-10-29 16:14:34 +01:00
Objects.t Bug 37510: Fix Objects.t and remove FIXME 2024-08-19 14:33:37 +02:00
Old.t
…
Patron.t Bug 40353: Remove warnings from Koha/Patron.t 2025-08-01 11:22:41 +02:00
Patron_generate_userid.t
…
Patrons.t Bug 37392: (follow-up) Limit a borrower not in a group and fix tests 2024-11-01 09:34:39 -03: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
…
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 32413: Fix repeated param names for JSON report 2024-10-30 07:47:48 +01:00
Reviews.t Bug 37392: (follow-up) Limit a borrower not in a group and fix tests 2024-11-01 09:34:39 -03: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 39214: Mock preferences in t/db_dependent/Koha/Session.t for subtest 'test session driver' 2025-08-06 15:07:37 +00:00
SharedContent.t
…
Statistic.t Bug 37182: Regression tests 2024-06-27 11:50:02 +02:00
Statistics.t
…
Subscription.t Bug 38011: (QA follow-up) Additional unit tests 2024-11-11 17:43:07 +01:00
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 Bug 30955: (QA follow-up) Reduce database hits and clarify notice 2024-10-24 16:55:58 +02:00
Virtualshelves.t
…
Z3950Servers.t
…