Koha-clms/t/db_dependent
Marcel de Rooy 916d564055 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>
2017-09-29 15:25:44 +02:00
..
Acquisition Bug 18420: Replace hardcoded EUR in OrderUsers.t 2017-04-21 10:49:25 -04:00
Auth
…
Authorities Bug 9988: Refactor the cron script 2017-04-13 08:53:47 -04:00
Biblio Bug 18951: Adjust Isbd.t 2017-08-03 09:48:06 +02:00
Circulation Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Creators Bug 18044: Add a test 2017-02-07 17:46:00 +00:00
Exporter Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Holds Bug 12063: [QA Follow-up] Small change of two test scripts 2017-05-09 08:59:40 -04:00
Items Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Koha Bug 19130: (followup) Add t/db_dependent/Koha/Acquisition/Booksellers.t 2017-09-29 15:21:20 +02:00
LDAP
…
Labels Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Letters Bug 17762: Update the letter form interface 2017-05-09 20:56:41 +00:00
Members Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
OAI Bug 18601: OAI/Sets.t mangles data due to truncate in ModOAISetsBiblios 2017-06-15 14:14:57 +02:00
Patron Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Record Bug 17249: Remove GetKohaAuthorisedValuesFromField - add tests 2016-10-21 15:13:55 +00:00
Reports Bug 17898: Automagically convert SQL reports 2017-05-19 18:48:26 +00:00
Reserves Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
SIP Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Search Bug 18976: (follow-up) Fix t/db_dependent/Search/History.t cleanup 2017-07-31 09:21:30 +02:00
Serials Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Template/Plugin Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Utils Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
XSLT_Handler
…
api/v1 Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
data
…
selenium Bug 18982: Remove data in the correct order 2017-07-27 15:54:47 +02:00
www Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
00-strict.t Bug 18233 - t/db_dependent/00-strict.t has non-existant resetversion.pl 2017-05-08 09:22:27 -04:00
Accounts.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Acquisition.t Bug 18554: Adjust a few typos including responsability 2017-05-09 21:03:22 +00:00
AdditionalField.t Bug 13726: Make Koha::Acq::Bookseller using Koha::Object 2016-12-30 11:54:32 +00:00
Amazon.t
…
ArticleRequests.t Bug 18766: Remove itemtype-related warnings from ArticleRequests.t 2017-06-12 11:59:19 +02:00
AudioAlerts.t
…
Auth.t Bug 18976: Fix t/db_dependent/Auth.t cleanup 2017-07-31 09:20:47 +02:00
Auth_with_cas.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Auth_with_ldap.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
AuthorisedValues.t Bug 18748: Noisy t/db_dependent/AuthorisedValues.t 2017-07-18 16:42:44 +02:00
AuthoritiesMarc.t Bug 18448: Fix a few db_dependent tests 2017-04-21 00:09:43 +00:00
BackgroundJob.t Bug 17426: Do not set AutoCommit in tests 2016-10-21 14:34:21 +00:00
Barcodes.t
…
Barcodes_ValueBuilder.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Biblio.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Bookseller.t Bug 19130: Remove ->search() overloading and adjust tests 2017-09-29 15:21:13 +02:00
Breeding.t
…
Budgets.t Bug 18941 - Unit tests 2017-09-29 11:51:39 +02:00
Calendar.t Bug 12063 - Fix QA failures 2017-05-09 08:59:39 -04:00
Charset.t Bug 18269: Move field mappings related code to Koha::FieldMapping[s] 2017-03-31 10:20:00 +00:00
Circulation.t Bug 18292 - t/db_dependent/Circulation.t doesn't need to return 1; 2017-09-29 12:00:50 +02:00
ClassSource.t
…
Clubs.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
ColumnsSettings.t
…
Context.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Contract.t Bug 13726: Make Koha::Acq::Bookseller using Koha::Object 2016-12-30 11:54:32 +00:00
CourseReserves.t Bug 17716: (followup) Remove dep on existing data and tidy 2016-12-05 15:32:57 +00:00
DecreaseLoanHighHolds.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Filter_MARC_ViewPolicy.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Fines.t
…
FrameworkPlugin.t
…
Heading_MARC21.t
…
Hold.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Holds.t Bug 12063: Change date calculation for reserve expiration to skip all holiday 2017-05-09 08:59:39 -04:00
HoldsQueue.t Bug 18605: Remove TRUNCATE from C4/HoldsQueue.pm 2017-07-31 10:01:04 +02:00
Holidays.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
ILSDI_Services.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
ImportBatch.t Bug 19049: [QA Follow-up] Mock config, default format 2017-09-06 15:27:05 +02:00
Installer.t Bug 17234: Need to separate KEY and FOREIGN KEY checks 2017-01-12 12:43:10 +00:00
Items.t Bug 17512: Improve handling dates in C4::Items 2017-02-14 13:57:49 +00:00
Items_DelItemCheck.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
KitchenSinkPlugin.kpz Bug 17368: Update KitchenSinkPlugin.kpz 2016-10-21 14:48:53 +00:00
Koha.t Bug 18448: Fix a few db_dependent tests 2017-04-21 00:09:43 +00:00
Koha_Authority.t
…
Koha_Database.t
…
Koha_Elasticsearch.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Koha_Elasticsearch_Indexer.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Koha_Misc_Files.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Koha_SearchEngine_Elasticsearch_Search.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Languages.t
…
Letters.t Bug 19042: Add mock IndependentBranches=0 for the other test 2017-09-29 11:27:27 +02:00
Linker_FirstMatch.t
…
Log.t Bug 18991: [QA Follow-up] Use schema txn_begin and txn_rollback 2017-07-31 10:46:17 +02:00
MarcModificationTemplates.t
…
Members.t Bug 19126: Fix Members.t with IndependentBranches set 2017-09-29 15:25:44 +02:00
MungeMarcPrice.t
…
NewsChannels.t Bug 17960: Rename opac_news.new with opac_news.content 2017-02-06 17:42:12 +00:00
Overdues.t
…
Passwordrecovery.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
PatronLists.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Patrons.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Plugins.t Bug 15879: Add Tests 2017-01-11 14:03:00 +00:00
QueryParser.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Record.t
…
RecordProcessor_EmbedSeeFromHeadings.t
…
RefundLostItemFeeRule.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Reports.t
…
Reserves.t Bug 19047: Fix AddBiblio call in Reserves.t 2017-09-29 11:31:36 +02:00
RotatingCollections.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Search.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
Serials.t Bug 18782: Remove unused C4::Serials::getsupplierbyserialid 2017-07-10 12:02:34 +02:00
Serials_2.t Bug 18420: Do not use 'S' as patron category code in other tests 2017-04-21 10:49:25 -04:00
Service.t
…
ShelfBrowser.t Bug 19047: Fix AddBiblio call in ShelfBrowser.t 2017-09-29 11:31:42 +02:00
Sitemapper.t Bug 17920: t/db_dependent/Sitemapper.t fails because of permissions 2017-01-20 14:04:21 +00:00
Stats.t
…
SuggestionEngine_ExplodedTerms.t
…
Suggestions.t Bug 18420: Use TestBuilder to create a patron category in Suggestions.t 2017-04-21 10:49:25 -04:00
Tags.t
…
Templates.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
TestBuilder.t Bug 18182: Tests all Koha::Objects-based modules 2017-04-21 00:10:50 +00:00
Upload.t Bug 18300: [QA Follow-up] Fix return value inconsistency 2017-04-21 00:11:40 +00:00
UsageStats.t Bug 18448: Fix a few db_dependent tests 2017-04-21 00:09:43 +00: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-20 13:39:37 +00:00
db_structure.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
default_search_class.pl
…
rollingloans.t Bug 17578: GetMemberDetails - Remove GetMemberDetails 2016-12-16 13:12:44 +00:00
sysprefs.t
…
zebra_config.pl
…