Koha-clms/t/db_dependent/Koha
Tomas Cohen Arazi 2c4dbb7c1e
Bug 33054: Fix unit tests
This patch fixes the tests by making sure:
- The branch in userenv matches the home/holding branch so there are no
  circ rules getting in the middle
- Gives the user superlibrarian permissions for the same reasons above.

To test:
1. Run:
   $ ktd --shell
  k$ for i in $(seq 1 20 ); do prove t/db_dependent/Koha/Acquisition/Order.t ; done
=> FAIL: Notice it fails quite often. You can ctrl+c to interrupt once
it has failed at least once.
2. Apply this patch
3. Repeat 1
=> SUCCESS: it doesn't fail a single time
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-02-24 16:42:07 -03:00
..
Account Bug 29021: (QA follow-up) Remove useless warnings 2023-01-30 12:01:41 -03:00
Acquisition Bug 33054: Fix unit tests 2023-02-24 16:42:07 -03:00
Auth Bug 31378: (QA follow-up) Tidy tests 2022-11-08 14:40:17 -03:00
BackgroundJob Bug 32779: Add tests 2023-02-02 11:59:26 -03:00
BackgroundJobs Bug 32366: (bug 30460 follow-up) Add tests 2022-12-01 10:02:21 -03:00
Biblio Bug 16522: (follow-up) If no 773$w, try to return host record 2023-01-30 12:10:12 -03:00
BiblioUtils
…
Cash
…
Charges Bug 32351: Fix t/db_dependent/Koha/Charges/Sales.t 2022-11-30 15:58:20 -03:00
Checkouts
…
CirculationRules
…
Club
…
Config
…
ERM Bug 32267: (bug 32154 follow-up) Fix Agreements.t 2022-11-18 12:04:25 -03:00
Edifact
…
Filter Revert "Bug 15187: (QA follow-up) Add unit test" 2022-10-24 14:04:07 -03:00
Import Bug 32054: Add get_import_record_matches object method and use it 2023-01-18 15:58:19 +00:00
Item Bug 24606: (QA follow-up) Fix Template.t 2022-11-22 13:33:39 -03:00
Items Bug 32019: Unit tests 2023-02-20 09:54:19 -03:00
Library
…
Objects/Mixin
…
Old Bug 26648: Add tests 2022-10-12 09:56:48 -03:00
Patron Bug 31095: Remove GetDebarments from Restriction/Type.t 2023-01-31 10:19:39 -03:00
Patrons Bug 27920: Add ability to update patron expiration dates when importing patrons 2022-11-09 14:37:07 -03:00
Plugins Bug 29274: Remove z_reset.t 2022-12-01 09:33:04 -03:00
REST Bug 31378: Tests shouldn't remove all patrons 2022-11-22 18:23:07 -03:00
SMTP Bug 27424: (QA follow-up) Make Koha::SMTP::Server->store deal with defaults 2023-01-31 10:52:49 -03:00
SearchEngine Bug 17170: (follow-up) adjust tests for bug 25375 2022-10-21 11:15:23 -03:00
Subscription
…
Tags
…
Template/Plugin Bug 32539: Add tests 2023-02-09 10:21:28 -03:00
UI/Form/Builder Bug 31196: Remove 'default_value_for_mod_marc-' clear_from_cache calls 2022-10-25 11:16:57 -03:00
XSLT
…
Z3950Responder
…
Account.t
…
ActionLogs.t
…
AdditionalContents.t Bug 29144: Add $contents->find_best_match, $library->opac_info 2022-09-16 09:55:19 -03:00
ApiKey.t
…
ArticleRequest.t
…
ArticleRequests.t
…
Authorities.t
…
BackgroundJob.t Bug 32394: Add tests 2022-12-14 14:32:27 -03:00
BackgroundJobs.t Bug 31969: Use filter_by_last_update 2022-11-25 09:40:09 -03:00
Biblio.t Bug 31326: Koha::Biblio->get_components_query fetches too many component parts 2023-01-31 11:03:11 -03:00
BiblioFrameworks.t
…
Biblios.t
…
Checkout.t
…
Checkouts.t
…
CirculationRules.t Bug 23012: (QA follow-up) No need to create and delete rules for branch 2022-10-24 17:43:30 -03:00
Cities.t
…
ClassSortRules.t
…
ClassSources.t
…
ClassSplitRules.t
…
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
…
Encryption.t
…
Hold.t Bug 24860: (QA follow-up) Add unit tests to cover Koha::Hold::item_group 2022-11-04 19:39:58 -03:00
Holds.t Bug 32650: Prevent Koha/Holds.t to fail randomly 2023-01-18 16:49:35 +00:00
Item.t Bug 30254: (QA follow-up) Remove warn from tests 2023-01-30 10:36:30 -03:00
ItemTypes.t
…
Items.t Bug 23012: (follow-up) Fix t/db_dependent/Koha/Items.t 2022-10-28 16:17:15 -03:00
KeyboardShortcuts.t
…
Libraries.t
…
Library.t Bug 29144: Add $contents->find_best_match, $library->opac_info 2022-09-16 09:55:19 -03:00
MarcSubfieldStructures.t
…
Notices.t
…
Object.t Bug 26635: (follow-up) Rename av_expand to strings 2022-11-09 14:01:02 -03:00
Objects.t
…
Old.t
…
Patron.t Bug 31051: Generate items correctly in test 2023-02-23 08:07:19 -03:00
Patrons.t Bug 20256: Add unit tests 2023-02-02 11:59:26 -03:00
Pseudonymization.t
…
Quotes.t
…
Ratings.t
…
Recall.t
…
Recalls.t
…
Reports.t
…
Reviews.t
…
SMS_Providers.t
…
SearchField.t
…
SharedContent.t
…
Statistics.t
…
Subscription.t
…
Suggestion.t
…
Suggestions.t
…
Tags.t
…
Virtualshelf.t
…
Virtualshelves.t
…
Z3950Servers.t Bug 30571: Z3950Servers.t - Add another subtest 2022-10-03 08:29:25 -03:00