Koha/t/db_dependent
Jonathan Druart ae5f5c4799 Bug 18802: Fix Circulation.t if finesMode ne 'production'
If finesMode is not set to production, only 1 fine will be created (the renewal
one will not). This is what assumes the tests.
If set to 'production', the tests will fail because the fines will not
be deleted (because of the DBIx::Class) warning.
Now we mock the value before charging.

prove t/db_dependent/Circulation.t
t/db_dependent/Circulation.t .. 16/95 DBIx::Class::Storage::DBI::select_single(): Query returned more than one row.  SQL that returns multiple rows is DEPRECATED for ->find and ->single at t/db_dependent/Circulation.t line 491
t/db_dependent/Circulation.t .. 56/95
    #   Failed test 'Can auto renew, OPACFineNoRenewals=10, patron has 10'
    #   at t/db_dependent/Circulation.t line 670.
    #          got: 'auto_too_much_oweing'
    #     expected: 'auto_renew'
    # Looks like you failed 1 test of 6.

Test plan:
  prove t/db_dependent/Circulation.t
should return green whatever the value of finesMode

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-08-08 09:21:42 -03:00
..
Acquisition Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
api/v1 Bug 18826 - (QA Followup) Add mock SessionStorage to patrons.t 2017-07-24 13:14:55 -03:00
Auth
Authorities Bug 9988: Refactor the cron script 2017-04-13 08:53:47 -04:00
Biblio Bug 18951: Adjust Isbd.t 2017-07-24 13:37:18 -03:00
Circulation Bug 18966: Do not deal with duplicate issue_id on checkin 2017-07-26 13:50:57 -03:00
Creators
data
Exporter
Holds Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
Items Bug 18761: Fix tests for AutomaticItemModificationByAge.t - clear cache 2017-06-14 14:36:11 -03:00
Koha Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
Labels
LDAP
Letters Bug 17975: TT syntax for notices - Prove that HOLD_SLIP is compatible 2017-06-15 15:56:00 -03:00
Members Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
OAI Bug 18601: OAI/Sets.t mangles data due to truncate in ModOAISetsBiblios 2017-06-13 16:18:59 -03:00
Patron Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
Record
Reports Bug 17898: Automagically convert SQL reports 2017-05-19 18:48:26 +00:00
Reserves Bug 18262: Fix test in MultiplePerRecord 2017-07-14 12:22:23 -03:00
Search Bug 18976: (follow-up) Fix t/db_dependent/Search/History.t cleanup 2017-07-26 14:36:34 -03:00
selenium Bug 18982: Remove data in the correct order 2017-07-26 13:50:44 -03:00
Serials Bug 18697: Final polishing 2017-06-19 15:35:51 -03:00
SIP Bug 18977: Rollback branch in t/db_dependent/SIP/Message.t 2017-07-26 14:36:29 -03:00
Template/Plugin Bug 18512: Add tests 2017-05-08 08:38:11 -04:00
Utils Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
www Bug 18807: t/db_dependent/www/batch.t fails 2017-06-19 15:34:39 -03:00
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 18226: Perltidy + license 2017-06-05 17:52:48 -03:00
Accounts.t Bug 18448: Fix a few db_dependent tests 2017-04-21 00:09:43 +00:00
Acquisition.t Bug 18260: Koha::Biblio - Remove GetBiblio 2017-07-10 13:03:38 -03:00
AdditionalField.t
Amazon.t
ArticleRequests.t Bug 18766: Remove itemtype-related warnings from ArticleRequests.t 2017-06-09 10:50:53 -03:00
AudioAlerts.t
Auth.t Bug 18976: Fix t/db_dependent/Auth.t cleanup 2017-07-26 14:36:34 -03:00
Auth_with_cas.t
Auth_with_ldap.t Bug 6979 - Fix Already in a transaction error 2017-03-31 12:21:28 +00:00
AuthorisedValues.t Bug 18748: Noisy t/db_dependent/AuthorisedValues.t 2017-07-14 12:29:22 -03:00
AuthoritiesMarc.t Bug 18448: Fix a few db_dependent tests 2017-04-21 00:09:43 +00:00
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 Bug 18448: Fix a few db_dependent tests 2017-04-21 00:09:43 +00:00
Breeding.t
Budgets.t Bug 18420: Fix Budgets.t when no patron category 'S' exists 2017-04-21 10:49:24 -04: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
check_sysprefs.t
Circulation.t Bug 18802: Fix Circulation.t if finesMode ne 'production' 2017-08-08 09:21:42 -03: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 Bug 18226 - Remove "use Test::DBIx::Class" instantiations' dangerous code duplication. Replace mock_dbh 1 2017-06-05 17:52:47 -03:00
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 17738: Replace GetReservesFromBorrowernumber with Koha::Patron->get_holds 2017-07-05 13:42:52 -03:00
HoldsQueue.t Bug 18605: Remove TRUNCATE from C4/HoldsQueue.pm 2017-07-24 14:12:27 -03:00
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 Bug 17843: Replace C4::Koha::getitemtypeinfo with Koha::ItemTypes 2017-07-05 13:42:21 -03:00
Koha_Authority.t
Koha_Database.t
Koha_Elasticsearch.t Bug 18434 - Followup fix tests for sorting and factes 2017-07-06 14:29:02 -03:00
Koha_Elasticsearch_Indexer.t Bug 18434: (QA followup) Move _convert_marc_to_json tests into Indexer.t 2017-07-06 14:29:02 -03:00
Koha_Misc_Files.t
Koha_SearchEngine_Elasticsearch_Search.t
Languages.t
Letters.t Bug 18613: Add unit tests for getletter 2017-07-17 13:02:24 -03:00
Linker_FirstMatch.t
Log.t Bug 18991: [QA Follow-up] Use schema txn_begin and txn_rollback 2017-07-28 11:23:40 -03:00
MarcModificationTemplates.t
Members.t Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
MungeMarcPrice.t
NewsChannels.t
Overdues.t
Passwordrecovery.t Bug 18420: Fix HoldFulfillmentPolicy.t and Passwordrecovery.t 2017-04-21 10:49:25 -04:00
PatronLists.t
Patrons.t
Plugins.t
QueryParser.t
Record.t
RecordProcessor_EmbedSeeFromHeadings.t
RefundLostItemFeeRule.t
Reports.t
Reserves.t Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
rollingloans.t Bug 17829: Execute rollingloans tests in a transaction 2017-07-26 16:39:17 -03:00
RotatingCollections.t
Search.t Bug 18762: Remove some warnings from Search.t 2017-06-14 14:36:28 -03:00
Serials.t Bug 18782: Remove unused C4::Serials::getsupplierbyserialid 2017-07-05 13:41:47 -03: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
Sitemapper.t Bug 18226 - Remove "use Test::DBIx::Class" instantiations' dangerous code duplication 2017-06-05 17:52:48 -03: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
sysprefs.t
Tags.t
Templates.t Bug 18010: Unit test for gettemplate 2017-03-23 00:36:12 +00: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 18672: [QA Follow-up] Simplify without sleep 2017-07-17 13:19:43 -03:00
XISBN.t
XSLT_Handler.t
zebra_config.pl