Koha/t/db_dependent
Lari Taskula e0e88806fa Bug 17539: Fix Undefined subroutine &C4::Circulation::GetItem error
perl t/db_dependent/Reserves.t

1..72
ok 1 - use C4::Reserves;
ok 2 - CheckReserves Test 1
ok 3 - CheckReserves() include reserve_id in its response
ok 4 - CheckReserves Test 2
ok 5 - CheckReserves Test 3
ok 6 - GetReservesControlBranch returns item home branch when set to ItemHomeLibrary
ok 7 - GetReservesControlBranch returns patron home branch when set to PatronLibrary
ok 8 - Item is correctly waiting
ok 9 - Item is correctly priority 1
ok 10 - Item is correctly priority 2
ok 11 - GetWaiting got only the waiting reserve
ok 12 - GetWaiting got the reserve for the correct borrower
Undefined subroutine &C4::Circulation::GetItem called at /home/ubuntu/kohaclone/C4/Circulation.pm line 1853.

This patch fixes this error. The solution was to use C4::Reserves before C4::Items.
Also due to this edit, change use_ok to require_ok

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

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

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-11-04 11:13:03 +00:00
..
Acquisition Bug 13321 - (QA Followup) Restore standing order functionality 2016-10-28 13:46:11 +00:00
api/v1 Bug 17428: [REST] best practice followup 2016-10-28 14:42:49 +00:00
Auth
Biblio
Circulation Bug 14598: (followup) Remove unused and non-existent C4::ItemType include 2016-10-28 11:29:59 +00:00
Creators
data
Exporter Bug 17088: Add tests to cover the changes 2016-10-10 12:24:00 +00:00
Holds Bug 15758: Koha::Libraries - Ultimate duel for C4::Branch 2016-09-08 14:36:04 +00:00
Items Bug 17251: Koha::AuthorisedValues - Remove GetKohaAuthorisedValuesMapping 2016-10-21 15:23:06 +00:00
Koha Bug 17443: Added tests 2016-10-28 16:45:05 +00:00
Labels
LDAP
Letters Bug 16942 [QA Followup] - Add unit test 2016-09-01 17:21:24 +00:00
Members Bug 16912: Koha::Patrons - Move and rewrite tests for AddEnrolmentFeeIfNeeded 2016-10-28 15:31:47 +00:00
OAI
Patron Bug 5670: [QA Followup] Correct housebound role search. 2016-10-21 18:18:06 +00:00
Record Bug 17249: Remove GetKohaAuthorisedValuesFromField - add tests 2016-10-21 15:13:55 +00:00
Reports
Reserves Bug 17327: (QA followup) Remove Carp::Always which is not used 2016-09-24 20:55:17 +00:00
Search
selenium Bug 13691: Add changes for 3.22 2016-07-08 20:36:57 +00:00
Serials Bug 13321: Rename variables 2016-10-28 13:45:59 +00:00
SIP Bug 15006: Centralize timeout logic and allow zero client timeout 2016-07-15 14:11:05 +00:00
Template/Plugin Bug 15758: Koha::Libraries - Do not select an option if selected is defined 2016-09-08 14:36:05 +00:00
Utils Bug 14874 - Add ability to search for patrons by date of birth from checkout and patron quick searches 2016-10-27 13:21:13 +00:00
www Bug 17540: (Bug 7216 followup) Fix tests for auth_values_input_www.t 2016-11-04 11:08:41 +00:00
XSLT_Handler
00-strict.t
Accounts.t Bug 15899 - Fix up unit tests 2016-09-27 13:55:12 +00:00
Acquisition.t Bug 13321: Rename variables 2016-10-28 13:45:59 +00: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 16853: Move changepassword to Koha::Patron->update_password 2016-07-15 18:09:17 +00:00
Auth_with_cas.t
Auth_with_ldap.t Bug 16907: Koha::Patrons - Move DelMember to ->delete 2016-10-21 16:20:41 +00:00
AuthorisedValues.t Bug 17250 - Koha::AuthorisedValues - Remove GetAuthValCode 2016-10-21 15:21:27 +00: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 16431: Use Koha::Cache to cache marc subfield structure 2016-07-08 12:44:58 +00:00
Bookseller.t Bug 13321: Rename variables 2016-10-28 13:45:59 +00:00
Breeding.t
Budgets.t Bug 16123 - Add unit tests 2016-10-28 15:26:00 +00:00
Charset.t
check_sysprefs.t
Circulation.t Bug 15581: Display the latest auto renew date possible when renewing manually 2016-11-02 10:28:57 +00: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
db_structure.t
DecreaseLoanHighHolds.t Bug 17124: Fix tests in DecreaseLoanHighHolds.t 2016-08-18 15:57:03 +00:00
default_search_class.pl
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 14514 - LocalHoldsPriority and the HoldsQueue conflict with each other 2016-10-11 15:44:47 +00:00
Holidays.t Bug 15758: Koha::Libraries - Ultimate duel for C4::Branch 2016-09-08 14:36:04 +00:00
ILSDI_Services.t
ImportBatch.t Bug 9259: Use is instead of is_deeply 2016-07-08 13:43:53 +00:00
Installer.t
Items.t Bug 14598: Fix warning from effective_itemtype 2016-10-28 11:29:59 +00: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_borrower_modifications.t Bug 16960: Update 1 missing occurrence of GetModifications 2016-08-22 11:46:05 +00:00
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 17372: Standardize Elasticsearch paths 2016-10-11 01:07:03 +00:00
Languages.t Bug 16866: Catch warning t/db_dependent/Languages.t 2016-07-08 14:50:18 +00:00
Letters.t Bug 5260: make tests pass even without patron cat 'PT' 2016-10-28 11:52:27 +00: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 16829: Unit tests for logaction's 'interface parameter' 2016-08-17 18:01:50 +00:00
MarcModificationTemplates.t
Members.t Bug 16907: Koha::Patrons - Move DelMember to ->delete 2016-10-21 16:20:41 +00: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
PatronLists.t
Patrons.t Bug 10459: Add tests for borrowers.updated_on 2016-06-10 17:10:23 +00: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 17539: Fix Undefined subroutine &C4::Circulation::GetItem error 2016-11-04 11:13:03 +00:00
rollingloans.t
RotatingCollections.t
Search.t Bug 17201: (bug 16431 follow-up2) Remove occurrence of marcfromkohafield 2016-09-02 14:00:11 +00:00
Serials.t Bug 12178: Fix tests not to depend on dateformat syspref 2016-07-15 14:07:41 +00:00
Serials_2.t Bug 7677: UT: Remove $dbh->rollback 2016-09-12 09:13:58 +00:00
Service.t
ShelfBrowser.t
Sitemapper.t Bug 16751: What is sitemaper? 2016-06-24 13:19:06 +00: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
sysprefs.t
Tags.t
Templates.t
TestBuilder.t Bug 16890: Make TestBuilder generate date for date columns (and not datetime) 2016-07-15 14:59:46 +00: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 15131: Add AllowItemsOnHoldCheckoutSCO to UsageStats 2016-10-21 17:27:07 +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
zebra_config.pl