Koha/t/db_dependent
Olli-Antti Kivilahti b5b1d3282e Bug 18286: Test::DBIx::Class connection/schema is shadowed by a cached connection/schema
If Koha::Database->schema gets called before

    use Test::DBIx::Class

The DB connection from $KOHA_CONF is cached.

This happens most of the time because when C4::Context and friends are loaded
(in compile-time?), they already access the DB.

After Test::DBIx::Class is instantiated and hooks put in place to overload
Koha::Schema connection, those hooks are never called due to getting the old
connection from cache.

This feature introduces a test case to replicate the behaviour and shows how
flushing the connection cache solves the problem.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-06-05 17:52:32 -03:00
..
Acquisition Bug 8612: [QA Follow-up] Remove two newlines from template output 2017-06-05 12:02:08 -03:00
api/v1
Auth
Authorities
Biblio
Circulation Bug 16344: Fix test in GetHardDueDate.t 2017-05-24 12:29:43 -03:00
Creators
data
Exporter
Holds Bug 12063: [QA Follow-up] Small change of two test scripts 2017-05-09 08:59:40 -04:00
Items
Koha Bug 8612: [Follow-up] Make usage and type different columns in table 2017-06-05 12:02:08 -03:00
Labels
LDAP
Letters Bug 17762: Update the letter form interface 2017-05-09 20:56:41 +00:00
Members Bug 18664: Make IssueSlip returns if params are not valid 2017-05-28 22:26:23 -04:00
OAI Bug 15108: (followup) OAI-PMH provider improvements 2017-05-08 09:27:20 -04:00
Patron
Record
Reports Bug 17898: Automagically convert SQL reports 2017-05-19 18:48:26 +00:00
Reserves
Search
selenium
Serials
SIP
Template/Plugin Bug 18512: Add tests 2017-05-08 08:38:11 -04:00
Utils
www
XSLT_Handler
00-strict.t Bug 18233 - t/db_dependent/00-strict.t has non-existant resetversion.pl 2017-05-08 09:22:27 -04:00
01-test_dbic.t Bug 18286: Test::DBIx::Class connection/schema is shadowed by a cached connection/schema 2017-06-05 17:52:32 -03:00
Accounts.t
Acquisition.t Bug 18554: Adjust a few typos including responsability 2017-05-09 21:03:22 +00:00
AdditionalField.t
Amazon.t
ArticleRequests.t
AudioAlerts.t
Auth.t Bug 18442: Add a test 2017-05-08 08:29:13 -04:00
Auth_with_cas.t
Auth_with_ldap.t
AuthorisedValues.t
AuthoritiesMarc.t
BackgroundJob.t
Barcodes.t
Barcodes_ValueBuilder.t
Biblio.t Bug 18554: Adjust a few typos including responsability 2017-05-09 21:03:22 +00:00
Bookseller.t
Breeding.t
Budgets.t
Calendar.t Bug 12063 - Fix QA failures 2017-05-09 08:59:39 -04:00
Charset.t
check_sysprefs.t
Circulation.t Bug 15582: Ability to block auto renewals if OPACFineNoRenewals is reached 2017-05-09 21:05:29 +00:00
ClassSource.t
Clubs.t Bug 18557 - Mysqlim CURRENT_DATE in Koha::Clubs::get_enrollable 2017-05-12 08:53:21 -04:00
ColumnsSettings.t
Context.t
Contract.t
CourseReserves.t
db_structure.t
DecreaseLoanHighHolds.t
default_search_class.pl
Filter_MARC_ViewPolicy.t
Fines.t
FrameworkPlugin.t
Heading_MARC21.t
Hold.t Bug 12063 - Remove Koha::Hold::waiting_expires_on since dateexpiration is set on database 2017-05-09 08:59:39 -04: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
Holidays.t
ILSDI_Services.t
ImportBatch.t Bug 18611: [QA Follow-up] Add unit test for GetItemNumbersFromImportBatch 2017-05-28 22:23:34 -04:00
Installer.t
Items.t
Items_DelItemCheck.t
KitchenSinkPlugin.kpz
Koha.t
Koha_Authority.t
Koha_Database.t
Koha_Elasticsearch.t
Koha_Elasticsearch_Indexer.t
Koha_Misc_Files.t
Koha_SearchEngine_Elasticsearch_Search.t
Languages.t
Letters.t Bug 18478 - Unit tests 2017-05-28 22:17:13 -04:00
Linker_FirstMatch.t
Log.t
MarcModificationTemplates.t
Members.t Bug 15702: Add test cases for modified code 2017-04-24 13:21:27 -04:00
MungeMarcPrice.t
NewsChannels.t
Overdues.t
Passwordrecovery.t
PatronLists.t
Patrons.t
Plugins.t
QueryParser.t
Record.t
RecordProcessor_EmbedSeeFromHeadings.t
RefundLostItemFeeRule.t
Reports.t
Reserves.t Bug 18620: [QA Follow-up] Move the final rollback to the very end 2017-05-28 22:17:13 -04:00
rollingloans.t
RotatingCollections.t
Search.t
Serials.t
Serials_2.t
Service.t
ShelfBrowser.t
Sitemapper.t
Stats.t
SuggestionEngine_ExplodedTerms.t
Suggestions.t
sysprefs.t
Tags.t
Templates.t
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
Virtualshelves.t
XISBN.t
XSLT_Handler.t
zebra_config.pl