Koha-clms/t/db_dependent
Marcel de Rooy 1c0f364687 Bug 19126: Fix Members.t with IndependentBranches set
If you enabled that pref, Members.t fails with:
t/db_dependent/Members.t .. 63/63 # Looks like you failed 15 tests of 63.

The first one is:
t/db_dependent/Members.t .. 32/63
   Failed test 'Staff patron not deleted from list'
   at t/db_dependent/Members.t line 304.

Bottle neck is GetBorrowersToExpunge. The results of that sub depend on the
state of this preference.
Trivially fixing it here by disabling the pref before the first call.

Test plan:
[1] Do not apply this patch yet. Enable IndependentBranches.
[2] Run Members.t and observe that it fails.
[3] Apply this patch. And run Members.t again. It should pass now.

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 44a8fc5b93)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 916d564055)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
2017-10-02 00:19:46 +02:00
..
Acquisition Bug 17647: Remove itemtype-related CancelReceipt.t warnings 2016-11-18 14:01:06 +00:00
Auth
…
Authorities Bug 17950: Merge.t: Improve variable handling at top level 2017-02-19 21:18:32 +01:00
Biblio Bug 18951: Adjust Isbd.t 2017-08-16 22:59:16 +02:00
Circulation Bug 19071: Fix Circulation/issue.t 2017-10-01 23:33:20 +02:00
Creators Bug 18044: Add a test 2017-02-07 22:08:44 +01:00
Exporter Bug 17644 - t/db_dependent/Exporter/Record.t fails 2016-11-17 11:05:52 +00:00
Holds Bug 17715: Remove itemtype-related t/db_dependent/Holds/RevertWaitingStatus.t warnings 2016-12-05 21:23:44 +01:00
Items Bug 18761: Fix tests for AutomaticItemModificationByAge.t - clear cache 2017-06-15 22:22:42 +02:00
Koha Bug 13012: Add more tests 2017-10-01 23:36:12 +02:00
LDAP
…
Labels
…
Letters Bug 17246: Do no support arrayref to define multiple FK 2017-01-03 23:39:19 +00:00
Members Bug 19071: Fix Members/IssueSlip.t 2017-10-01 23:33:20 +02:00
OAI Bug 18601: OAI/Sets.t mangles data due to truncate in ModOAISetsBiblios 2017-06-15 22:21:38 +02:00
Patron Bug 17603: Remove itemtype-related Borrower_Discharge.t warnings 2016-11-12 02:38:19 +00:00
Record Bug 17249: Remove GetKohaAuthorisedValuesFromField - add tests 2016-10-21 15:13:55 +00:00
Reports Bug 12787 [QA Followup] - Retain change to Reports_Guided.t 2016-04-22 00:54:36 +00:00
Reserves Bug 17766 - Patron notification does not work with multi item holds 2017-01-15 17:36:44 +01:00
SIP Bug 18996: [16.11.x] use Koha::OldIssues instead of Koha::Old::Checkouts 2017-09-16 00:49:07 +02:00
Search Bug 18976: [16.11] Add missing use statement 2017-08-16 23:50:42 +02:00
Serials Bug 18539: remove occurrence in ReNewSubscription.t 2017-08-05 14:44:34 +02:00
Template/Plugin Bug 18512: Add tests 16.11.X version 2017-06-05 15:29:53 +02:00
Utils Bug 18094: Add tests to highlight the problem 2017-03-26 20:53:24 +00:00
XSLT_Handler
…
api/v1 Bug 18826 - (QA Followup) Add mock SessionStorage to patrons.t 2017-07-28 01:18:29 +02:00
data
…
selenium Bug 18982: Remove data in the correct order 2017-08-01 07:21:25 +02:00
www Bug 18807: t/db_dependent/www/batch.t fails 2017-06-28 00:09:57 +02:00
00-strict.t Bug 18233 - t/db_dependent/00-strict.t has non-existant resetversion.pl 2017-05-14 11:24:03 +02:00
Accounts.t Bug 15899 - Fix up unit tests 2016-09-27 13:55:12 +00:00
Acquisition.t Bug 18554: Adjust a few typos including responsability 2017-07-16 14:47:24 +02:00
AdditionalField.t
…
Amazon.t
…
ArticleRequests.t Bug 14610 - Add unit tests 2016-10-26 12:15:15 +00:00
AudioAlerts.t
…
Auth.t Bug 18976: Fix t/db_dependent/Auth.t cleanup 2017-08-16 23:50:42 +02:00
Auth_with_cas.t
…
Auth_with_ldap.t Bug 17615 - Fix unit tests 2017-01-22 20:32:11 +01:00
AuthorisedValues.t Bug 18748: Noisy t/db_dependent/AuthorisedValues.t 2017-07-19 23:23:03 +02:00
AuthoritiesMarc.t
…
BackgroundJob.t Bug 17426: Do not set AutoCommit in tests 2016-10-21 14:34:21 +00:00
Barcodes.t Bug 15878 - Updated unit tests for hbyymmincr barcodes 2016-05-23 17:42:10 +00:00
Barcodes_ValueBuilder.t
…
Biblio.t Bug 18554: Adjust a few typos including responsability 2017-07-16 14:47:24 +02:00
Bookseller.t Bug 13321: Rename variables 2016-10-28 13:45:59 +00:00
Breeding.t
…
Budgets.t Bug 18941 - Unit tests 2017-10-01 23:37:48 +02:00
Charset.t
…
Circulation.t Bug 18759: (follow-up) Try to fix random failure from Circulation.t 2017-06-13 07:44:25 +02:00
ClassSource.t Bug 16860: Remove the comment about the warning 2016-07-08 13:29:50 +00:00
ColumnsSettings.t
…
Context.t Bug 16813: Allow empty string for OPACBaseURL 2016-07-15 15:02:13 +00:00
Contract.t
…
CourseReserves.t Bug 17716: (followup) Remove dep on existing data and tidy 2016-12-05 21:25:07 +01:00
DecreaseLoanHighHolds.t Bug 16387: Fix default shortened loan period time 2017-02-07 22:21:15 +01:00
Filter_MARC_ViewPolicy.t Bug 11592: Add should_hide_marc method to filter 2016-09-08 11:54:16 +00:00
Fines.t
…
FrameworkPlugin.t
…
Heading_MARC21.t
…
Hold.t Bug 14642: (QA followup) Add tests for Koha::Hold->delete 2016-08-17 18:43:13 +00:00
Holds.t Bug 15758: Koha::Libraries - Ultimate duel for C4::Branch 2016-09-08 14:36:04 +00:00
HoldsQueue.t Bug 18605: Remove TRUNCATE from C4/HoldsQueue.pm 2017-08-01 07:43:07 +02:00
Holidays.t Bug 16376: (regression tests) 2016-12-12 23:05:51 +01:00
ILSDI_Services.t Bug 16155: (QA followup) fix small bug in t/db_dependent/ILSDI_Services.t 2016-05-04 13:47:58 +00:00
ImportBatch.t Bug 19049: [QA Follow-up] Mock config, default format 2017-09-10 11:00:29 +02:00
Installer.t Bug 17234: Need to separate KEY and FOREIGN KEY checks 2017-01-15 17:06:47 +01:00
Items.t Bug 17512: Improve handling dates in C4::Items 2017-02-14 22:26:17 +01:00
Items_DelItemCheck.t Bug 14504: Changes missed while fixing patches 2016-08-26 12:07:27 +00:00
KitchenSinkPlugin.kpz Bug 17368: Update KitchenSinkPlugin.kpz 2016-10-21 14:48:53 +00:00
Koha.t Bug 14629 - Fix # of unit tests 2016-10-28 12:11:17 +00:00
Koha_Authority.t
…
Koha_Database.t
…
Koha_Elasticsearch. Bug 17372: Standardize Elasticsearch paths 2016-10-11 01:07:03 +00:00
Koha_Elasticsearch_Indexer.t Bug 17372: Standardize Elasticsearch paths 2016-10-11 01:07:03 +00:00
Koha_Misc_Files.t
…
Koha_SearchEngine_Elasticsearch_Search.t Bug 18068: ES - Fix location and (home|holding)branch facets 2017-02-19 21:15:07 +01:00
Koha_borrower_modifications.t Bug 17494: (QA followup) Fix exception name 2016-11-04 15:45:41 +00:00
Languages.t Bug 16866: Catch warning t/db_dependent/Languages.t 2016-07-08 14:50:18 +00:00
Letters.t Bug 19042: Add mock IndependentBranches=0 for the other test 2017-10-01 23:28:33 +02:00
Linker_FirstMatch.t Bug 16868: Silence error t/db_dependent/Linker_FirstMatch.t 2016-08-04 20:04:24 +00:00
Log.t Bug 18991: [QA Follow-up] Use schema txn_begin and txn_rollback 2017-08-01 07:54:28 +02:00
MarcModificationTemplates.t
…
Members.t Bug 19126: Fix Members.t with IndependentBranches set 2017-10-02 00:19:46 +02:00
MungeMarcPrice.t
…
NewsChannels.t Bug 15758: Koha::Libraries - Remove GetBranchName 2016-09-08 14:36:01 +00:00
Overdues.t Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
Passwordrecovery.t Bug 18025: Fix test 2017-02-19 20:56:25 +01:00
PatronLists.t Bug 17722: Make PatronLists.t run inside a transaction 2016-12-12 23:21:18 +01:00
Patrons.t Bug 17742: Use TestBuilder to create the library and patron category 2017-01-04 08:26:35 +01:00
Plugins.t Bug 16586: [QA Follow-up] Add test for two metadata conditions 2016-09-09 12:13:39 +00:00
QueryParser.t
…
Record.t
…
RecordProcessor_EmbedSeeFromHeadings.t
…
RefundLostItemFeeRule.t Bug 14048: (QA followup) Default to 1 if no default rule 2016-07-07 10:37:01 -06:00
Reports.t
…
Reserves.t Bug 19047: Fix AddBiblio call in Reserves.t 2017-10-01 23:29:30 +02:00
RotatingCollections.t
…
Search.t Bug 18762: Remove some warnings from Search.t 2017-06-21 08:17:27 +02:00
Serials.t Bug 18460: Fix undefined itemtype warning in Serials.t 2017-04-22 00:42:08 +02:00
Serials_2.t Bug 7677: UT: Remove $dbh->rollback 2016-09-12 09:13:58 +00:00
Service.t
…
ShelfBrowser.t Bug 19047: Fix AddBiblio call in ShelfBrowser.t 2017-10-01 23:29:44 +02:00
Sitemapper.t Bug 17920: t/db_dependent/Sitemapper.t fails because of permissions 2017-01-22 21:16:04 +01:00
Stats.t
…
SuggestionEngine_ExplodedTerms.t Bug 16869: Silence and catch warnings in t/db_dependent/SuggestionEngine_ExplodedTerms.t 2016-07-08 13:08:09 +00:00
Suggestions.t Bug 17099: C4::Koha - Remove GetSupportName and GetSupportList 2016-09-09 13:30:45 +00:00
Tags.t
…
Templates.t Bug 18010: Unit test for gettemplate 2017-03-26 21:05:25 +00:00
TestBuilder.t Bug 17726: [QA Follow-up] Add test descriptions 2017-02-07 07:55:40 +01:00
Upload.t Bug 17538: (Bug 17216 follow-up) Fix t/db_dependent/Upload.t 2016-11-04 11:04:51 +00:00
UsageStats.t Bug 18066: Fix tests 2017-05-14 14:26:21 +02:00
Virtualshelves.t Bug 16551: Display the name of lists to the search results at the OPAC 2016-09-25 15:43:07 +00:00
XISBN.t
…
XSLT_Handler.t
…
check_sysprefs.t Bug 17917: [AMENDED] Fix path issue in t/db_dependent/check_sysprefs.t 2017-01-22 20:37:03 +01:00
db_structure.t Bug 16173: db_structure.t shouldn't have a fixed number of tests 2016-04-01 19:14:53 +00:00
default_search_class.pl
…
rollingloans.t
…
sysprefs.t
…
zebra_config.pl
…