Koha-clms/t/db_dependent/Koha
Tomas Cohen Arazi 8b130c2eed
Bug 23893: Special care for booleans
This patch acknowledges the fact that in D8 the Mojo::JSON->true and
Mojo::JSON->false values don't translate into integers when passed to
DBIC. It works correctly on D9 onwards, but we haven't formally
deprecated Jessie. This is adding back this translation, in the right
place now that all mappings code has been integrated into
Koha::Object(s) directly.

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

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-15 13:35:47 +00:00
..
Account Bug 23354: (RM follow-up) Reword remaining can_be_added_manually 2020-01-13 16:37:11 +00:00
Acquisition Bug 18731: Overload K::A::Fund->to_api to avoid conflict 2020-01-14 09:24:31 +00:00
Biblio Bug 22144: (QA follow-up) Prepare the ground for other formats 2019-01-30 11:50:48 +00:00
BiblioUtils Bug 21798: replace gimme_a_biblio with build_sample_biblio 2019-01-28 18:53:28 +00:00
Cash Bug 23321: Allow setting of branch default 2019-09-23 11:39:22 +01:00
Charges Bug 23354: (QA follow-up) Rename test file 2020-01-13 14:06:48 +00:00
Checkouts Bug 14697: (QA follow-up) Restore FK on issue_id and adjust tests 2019-10-31 12:05:27 +00:00
Club Bug 19618: Add tests 2019-10-01 08:05:58 +01:00
Config Bug 15494: (follow-up) Move yaml syspref code to its own sub in SySpref object 2018-11-07 21:39:39 +00:00
Filter Bug 23793: Unit tests 2019-10-23 17:33:09 +01:00
IssuingRules Bug 17530: (QA follow-up) Add pref ArticleRequestsLinkControl 2018-09-07 13:16:10 +00:00
Item Bug 14334: Remove AutoCommit from tests 2018-12-14 13:42:37 +00:00
Library Bug 21082: Add new admin page for overdrive 2018-10-09 11:04:23 +00:00
Objects/Mixin Bug 23994: Fix random failure from AdditionalFields.t (U18) 2019-11-08 09:31:47 +00:00
Patron Bug 24016: Add a failing test for overwrite-able manager_id in Koha::Patron::Message 2020-01-02 14:53:21 +00:00
Patrons Bug 17359: Use a unicode character in tests 2019-11-06 17:03:37 +00:00
Plugins Bug 22706: (RM follow-up) Add unit tests 2019-10-31 12:21:22 +00:00
REST Bug 18731: Use the stashed koha.embed in objects.search 2020-01-09 16:25:53 +00:00
SearchEngine Bug 23676: (RM follow-up) Test Correction 2020-01-13 09:28:39 +00:00
Subscription Bug 17047: SQL reports management with Mana-KB 2019-01-23 14:39:26 +00:00
Tags Bug 21846: Add Koha::Tags::Approval(s) and Koha::Tags::Index(es) 2019-03-15 12:27:44 +00:00
Template/Plugin Bug 21073: (QA follow-up) Fix plugin-related tests 2019-06-20 08:35:46 +01:00
Z3950Responder Bug 24022: Try to fix 'connect failed' 2019-11-13 13:19:48 +00:00
Account.t Bug 24408: Do not compare floats with precision in tests 2020-01-13 13:42:45 +00:00
ActionLogs.t Bug 24329: Add a test 2020-01-08 11:05:00 +00:00
ApiKeys.t Bug 21597: Field 'description' doesn't have a default value 2018-10-18 14:18:00 +00:00
Authorities.t Bug 14769: Put ControlledIndicators to work 2018-04-12 10:50:35 -03:00
Biblio.t Bug 24366: Make sure accessors are used on the right object 2020-01-14 14:12:57 +00:00
BiblioFrameworks.t
…
Biblios.t Bug 22284: (QA follow-up) Make pickup locations be Koha::Library objects 2020-01-03 12:58:06 +00:00
Checkouts.t Bug 21432: (bug 20899 follow-up) Fix patron's name display for deleted patrons 2018-10-03 17:18:44 +00:00
CirculationRules.t Bug 22679: Delete related CirculationRules when Removing IssuingRule 2019-04-24 10:35:38 +00:00
Cities.t Bug 20144: [sql_modes] Shorten cities.city_zipcode 2018-02-13 13:58:51 -03:00
ClassSortRules.t Bug 19929: Add Koha objects for class sources and sorters 2018-03-23 11:45:38 -03:00
ClassSources.t Bug 15836: Fix failing tests 2018-11-13 18:53:10 +00:00
ClassSplitRules.t Bug 15836: Handle non-existent regexs 2018-11-13 15:18:22 +00:00
CsvProfiles.t Bug 20144: [sql_modes] Add default values for export_format columns 2018-02-13 13:58:51 -03:00
Database.t Bug 21613: Add a test 2018-10-29 00:40:52 +00:00
GetDailyQuote.t Bug 14334: Remove AutoCommit from tests 2018-12-14 13:42:37 +00:00
Holds.t Bug 22008: (follow-up) Additional test fix and fix typo 2019-03-27 13:13:48 +00:00
IssuingRules.t Bug 18928: (bug 22679 follow-up) Do not remove all rules along with the issuing rule 2019-07-01 14:58:13 +01:00
Item.t Bug 22284: (QA follow-up) Make pickup locations be Koha::Library objects 2020-01-03 12:58:06 +00:00
ItemTypes.t Bug 24408: Do not compare floats with precision in tests 2020-01-13 13:42:45 +00:00
Items.t Bug 22284: (QA follow-up) Make pickup locations be Koha::Library objects 2020-01-03 12:58:06 +00:00
KeyboardShortcuts.t Bug 21411: (QA follow-up) fix tests 2019-05-10 18:59:39 +00:00
Libraries.t Bug 24350: ->pickup_locations returns unblessed objects 2020-01-14 13:37:45 +00:00
MarcSubfieldStructures.t Bug 19096: Add update DB entry to sync kohafield in all frameworks 2017-12-11 11:34:08 -03:00
News.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
Notices.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
Object.t Bug 23893: Special care for booleans 2020-01-15 13:35:47 +00:00
Objects.t Bug 24228: Make ->to_api params a hashref 2020-01-08 15:07:33 +00:00
Old.t Bug 24150: Prevent random failure comparing updated_on 2020-01-07 16:27:54 +00:00
Patron.t Bug 23049: Update existing code to use debit_type 2019-10-24 17:24:15 +01:00
Patrons.t Bug 14759: Add test 2020-01-10 10:44:43 +00:00
Ratings.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
Reports.t Bug 20052: (follow-up) Fix QA tool complaints and bad copy 2018-04-02 18:08:06 -03:00
Reviews.t Bug 21817: Centralize the mock of userenv from tests 2019-01-02 20:18:29 +00:00
SMS_Providers.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
SearchField.t Bug 20589: (RM follow-up) Fix Koha::SearchField.t 2019-10-03 14:17:32 +01:00
SharedContent.t Bug 23075: (RM follow-up) Update mock in tests 2019-11-07 07:56:17 +00:00
Subscription.t Bug 17047: add a dedicated page for Mana setup 2019-01-23 14:39:26 +00:00
Suggestions.t Bug 22368: Make sure the tests will always pass 2019-03-11 12:53:29 +00:00
Tags.t Bug 21846: Add Koha::Tags::Approval(s) and Koha::Tags::Index(es) 2019-03-15 12:27:44 +00:00
Z3950Servers.t Bug 20047: Add Koha::Z3950Server Oject and use it to get server count 2018-04-20 13:34:41 -03:00