Koha-clms/t/db_dependent/Koha
Tomas Cohen Arazi b41fa9b487
Bug 37898: Wrap Indexer.t inside a transaction
This tests leave new data on the DB. This patch fixes it.

To test:
1. Run:
   $ ktd --shell
  k$ echo "SELECT COUNT(*) FROM biblio \G" | koha-mysql kohadev
2. Run:
  k$ prove t/db_dependent/Koha/SearchEngine/Elasticsearch/Indexer.t
=> SUCCESS: Tests pass
3. Repeat 1
=> FAIL: Biblio count raised
4. Apply this patch
5. Repeat 2 and 3
=> SUCCESS: Tests pass
=> SUCCESS: Biblio count remains
6. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2024-09-19 12:50:19 +01: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 36935: Add unit test for error handling 2024-07-02 10:20:36 +02:00
BackgroundJobs
…
Biblio Bug 37380: Unit tests 2024-09-16 10:41:04 +02:00
Cash
…
Charges
…
Checkouts
…
CirculationRules
…
Club
…
Config
…
Database
…
ERM
…
Edifact
…
Filter
…
ILL Bug 34597: Add tests 2024-06-11 10:43:56 +01:00
Import
…
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 34597: Add tests 2024-06-11 10:43:56 +01: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
…
Preservation
…
REST Bug 35568: Supress exception 2024-06-14 09:24:55 +01:00
SMTP
…
SearchEngine Bug 37898: Wrap Indexer.t inside a transaction 2024-09-19 12:50:19 +01: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
…
Account.t
…
ActionLogs.t
…
AdditionalContents.t Bug 36875: Unit test 2024-06-20 17:55:38 +02:00
AdditionalField.t
…
ApiKey.t
…
ArticleRequest.t
…
ArticleRequests.t
…
Authorities.t Bug 30047: (follow-up) Fix failing tests 2024-05-13 16:24:18 +02:00
BackgroundJob.t Bug 36367: Fix BackgroundJob.t 2024-06-14 11:17:19 +01:00
BackgroundJobs.t Bug 36217: Fix background jobs page's include_last_hour filter 2024-08-09 17:36:19 +02:00
Biblio.t Bug 29560: Unit tests 2024-07-15 11:04:06 +02:00
BiblioFrameworks.t
…
Biblios.t
…
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
…
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
…
Desks.t
…
EDI.t
…
Encryption.t
…
Hold.t Bug 35353: Add REST API endpoint to retrieve old holds 2024-04-26 18:06:09 +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
…
Items.t Bug 29087: (QA follow-up): Fix QA tests 2024-07-22 07:36:38 +01:00
KeyboardShortcuts.t
…
Libraries.t
…
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
…
Notices.t
…
Object.t Bug 36919: Remove yet another warning from Koha/Object.t 2024-08-29 18:16:23 +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 37757: (follow-up) Warn on bad values and survive 2024-09-13 16:06:24 +02:00
Patron_generate_userid.t
…
Patrons.t Bug 37636: Unit test 2024-09-13 16:06:26 +02:00
Pseudonymization.t
…
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 37508: (QA follow-up) Move check to Koha::Report, extend 2024-08-16 16:22:25 +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
…
SharedContent.t
…
Statistic.t Bug 37182: Regression tests 2024-06-27 11:50:02 +02:00
Statistics.t
…
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
…