From dd240f24f77126c3900290cf7d34e154c8797811 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 22 Jan 2025 14:42:43 +0100 Subject: [PATCH] Bug 38944: Add Test::NoWarnings to tests no producing warnings This has been generated. Signed-off-by: David Nind --- t/00-check-atomic-updates.t | 1 + t/00-deprecated.t | 3 ++- t/00-load.t | 1 + t/00-merge-conflict-markers.t | 3 ++- t/00-testcritic.t | 1 + t/00-valid-xml.t | 1 + t/Acquisition/CanUserManageBasket.t | 3 ++- t/Auth.t | 3 ++- t/AuthoritiesMarc_MARC21.t | 3 ++- t/AuthoritiesMarc_UNIMARC.t | 3 ++- t/Barcodes_EAN13.t | 3 ++- t/Barcodes_annual.t | 3 ++- t/Barcodes_hbyymmincr.t | 3 ++- t/Barcodes_incremental.t | 3 ++- t/Biblio.t | 1 + t/Biblio/TransformHtmlToXml.t | 3 ++- t/Biblio2.t | 1 + t/Budgets.t | 3 ++- t/Budgets/CanUserModifyBudget.t | 3 ++- t/Budgets/CanUserUseBudget.t | 3 ++- t/Charset.t | 3 ++- t/Circulation/AgeRestrictionMarkers.t | 3 ++- t/Circulation_barcodedecode.t | 3 ++- t/ClassSortRoutine.t | 3 ++- t/ClassSortRoutine_Dewey.t | 3 ++- t/ClassSortRoutine_Generic.t | 3 ++- t/ClassSortRoutine_LCC.t | 3 ++- t/ClassSource.t | 3 ++- t/Context.t | 3 ++- t/Contract.t | 3 ++- t/CookieManager.t | 3 ++- t/Creators.t | 3 ++- t/DateUtils.t | 3 ++- t/EdiInvoice.t | 3 ++- t/Ediorder.t | 3 ++- t/Ediordrsp.t | 3 ++- t/External/BakerTaylor.t | 3 ++- t/External/Syndetics.t | 3 ++- t/Form_MessagingPreferences.t | 3 ++- t/HtmlTags.t | 3 ++- t/Installer_PerlModules.t | 3 ++- t/ItemCirculationAlertPreference.t | 3 ++- t/Koha/Auth/Permissions.t | 3 ++- t/Koha/Authority/ControlledIndicators.t | 3 ++- t/Koha/Config.t | 3 ++- t/Koha/Database/Columns.t | 3 ++- t/Koha/DateTime/Format/RFC3339.t | 1 + t/Koha/DateTime/Format/SQL.t | 1 + t/Koha/Email.t | 3 ++- t/Koha/Exceptions.t | 3 ++- t/Koha/I18N.t | 3 ++- t/Koha/Installer/Output.t | 3 ++- t/Koha/ItemType.t | 3 ++- t/Koha/Middleware/RealIP.t | 3 ++- t/Koha/Middleware/SetEnv.t | 3 ++- t/Koha/Object/Message.t | 3 ++- t/Koha/Plugins/SafeURL.t | 3 ++- t/Koha/Plugins/Tab.t | 3 ++- t/Koha/REST/Plugin/Query.t | 3 ++- t/Koha/Result/Boolean.t | 3 ++- t/Koha/Script.t | 3 ++- t/Koha/Script_cron.t | 3 ++- t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t | 3 ++- t/Koha/SearchEngine/Elasticsearch/Search.t | 3 ++- t/Koha/SearchEngine/Search.t | 3 ++- t/Koha/SearchEngine/Zebra/QueryBuilder.t | 3 ++- t/Koha/Util/MARC.t | 3 ++- t/Koha/Util/Navigation.t | 3 ++- t/Koha/Util/Normalize.t | 3 ++- t/Koha/Util/OpenDocument.t | 3 ++- t/Koha/Z3950responder.t | 3 ++- t/Koha_MetadataRecord.t | 3 ++- t/Koha_SearchEngine_Elasticsearch_Browse.t | 1 + t/Koha_Template_Plugin_HtmlId.t | 3 ++- t/Koha_Template_Plugin_Koha.t | 3 ++- t/Koha_Util_FrameworkPlugin.t | 3 ++- t/Koha_Util_MARC.t | 3 ++- t/Koha_XSLT_HTTPS.t | 3 ++- t/Labels_split_Regex.t | 3 ++- t/Labels_split_ccn.t | 1 + t/Labels_split_ddcn.t | 1 + t/Labels_split_lccn.t | 1 + t/Languages.t | 3 ++- t/Logger.t | 3 ++- t/Makefile.t | 3 ++- t/Members_Messaging.t | 3 ++- t/Number/Price.t | 3 ++- t/OpenLibrarySearch.t | 3 ++- t/Output.t | 3 ++- t/Output_JSONStream.t | 3 ++- t/Patroncards.t | 3 ++- t/Patroncards_Batch.t | 3 ++- t/Patroncards_Lib.t | 3 ++- t/Patroncards_Patroncard.t | 3 ++- t/Patroncards_Profile.t | 3 ++- t/Patroncards_Template.t | 3 ++- t/RecordProcessor.t | 1 + t/Ris.t | 3 ++- t/SIP/Sip.t | 3 ++- t/SMS.t | 3 ++- t/Scheduler.t | 3 ++- t/Scrubber.t | 3 ++- t/Search.t | 3 ++- t/Search/History.t | 3 ++- t/Search/buildQuery.t | 3 ++- t/Search_PazPar2.t | 3 ++- t/Serials/GetNextSeq.t | 3 ++- t/Serials/ModSerialStatus.t | 3 ++- t/SimpleMARC.t | 3 ++- t/SuggestionEngine.t | 1 + t/SuggestionEngine_AuthorityFile.t | 3 ++- t/Template/Utils.t | 3 ++- t/Test/Dates.t | 3 ++- t/TmplToken.t | 3 ++- t/Token.t | 3 ++- t/db_dependent/00-strict.t | 1 + t/db_dependent/Accounts.t | 3 ++- t/db_dependent/Acquisition.t | 3 ++- t/db_dependent/Acquisition/CancelReceipt.t | 3 ++- t/db_dependent/Acquisition/FillWithDefaultValues.t | 3 ++- t/db_dependent/Acquisition/GetBasketAsCSV.t | 3 ++- t/db_dependent/Acquisition/GetBasketGroupAsCSV.t | 3 ++- t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t | 3 ++- t/db_dependent/Acquisition/GetOrdersByBiblionumber.t | 1 + t/db_dependent/Acquisition/Invoices.t | 3 ++- t/db_dependent/Acquisition/NewOrder.t | 3 ++- t/db_dependent/Acquisition/OrderFromSubscription.t | 3 ++- t/db_dependent/Acquisition/OrderUsers.t | 3 ++- t/db_dependent/Acquisition/StandingOrders.t | 3 ++- t/db_dependent/Acquisition/TransferOrder.t | 3 ++- t/db_dependent/Acquisition/close_reopen_basket.t | 3 ++- t/db_dependent/Acquisition/populate_order_with_prices.t | 3 ++- t/db_dependent/Amazon.t | 3 ++- t/db_dependent/ArticleRequests.t | 3 ++- t/db_dependent/AudioAlerts.t | 3 ++- t/db_dependent/Auth/haspermission.t | 3 ++- t/db_dependent/AuthUtils.t | 3 ++- t/db_dependent/Auth_with_cas.t | 3 ++- t/db_dependent/Auth_with_ldap.t | 3 ++- t/db_dependent/AuthoritiesMarc.t | 3 ++- t/db_dependent/AuthoritiesMarc/MARC21.t | 3 ++- t/db_dependent/AuthoritiesMarc_GetTagsLabels.t | 3 ++- t/db_dependent/Authority/Merge.t | 3 ++- t/db_dependent/Authority/MergeRequests.t | 3 ++- t/db_dependent/Authority/Subfields.t | 3 ++- t/db_dependent/Authority/Tags.t | 3 ++- t/db_dependent/Barcodes.t | 3 ++- t/db_dependent/Barcodes_ValueBuilder.t | 3 ++- t/db_dependent/Biblio/Isbd.t | 3 ++- t/db_dependent/Biblio/MarcOverlayRules.t | 3 ++- t/db_dependent/Biblio/ModBiblioMarc.t | 3 ++- t/db_dependent/Biblio/TransformHtmlToMarc.t | 3 ++- t/db_dependent/Biblio/TransformKohaToMarc.t | 3 ++- t/db_dependent/Biblio/TransformMarcToKoha.t | 3 ++- t/db_dependent/Biblio_holdsqueue.t | 3 ++- t/db_dependent/Breeding.t | 3 ++- t/db_dependent/Breeding_Auth.t | 3 ++- t/db_dependent/Budgets/CloneBudgetHierarchy.t | 1 + t/db_dependent/Cache.t | 3 ++- t/db_dependent/Calendar.t | 3 ++- t/db_dependent/Charset.t | 3 ++- t/db_dependent/Circulation.t | 3 ++- t/db_dependent/Circulation/Branch.t | 3 ++- t/db_dependent/Circulation/CalcDateDue.t | 3 ++- t/db_dependent/Circulation/CalcFine.t | 3 ++- t/db_dependent/Circulation/CheckIfIssuedToPatron.t | 3 ++- t/db_dependent/Circulation/CheckValidBarcode.t | 3 ++- t/db_dependent/Circulation/GetHardDueDate.t | 3 ++- t/db_dependent/Circulation/GetPendingOnSiteCheckouts.t | 3 ++- t/db_dependent/Circulation/GetTopIssues.t | 3 ++- t/db_dependent/Circulation/IsItemIssued.t | 3 ++- t/db_dependent/Circulation/MarkIssueReturned.t | 3 ++- t/db_dependent/Circulation/NoIssuesChargeGuarantees.t | 3 ++- t/db_dependent/Circulation/OfflineCirculation.t | 3 ++- t/db_dependent/Circulation/OfflineOperation.t | 3 ++- t/db_dependent/Circulation/ReturnClaims.t | 3 ++- t/db_dependent/Circulation/Returns.t | 3 ++- t/db_dependent/Circulation/StoreLastBorrower.t | 3 ++- t/db_dependent/Circulation/SwitchOnSiteCheckouts.t | 3 ++- t/db_dependent/Circulation/TooMany.t | 3 ++- t/db_dependent/Circulation/_CalculateAndUpdateFine.t | 3 ++- t/db_dependent/Circulation/dateexpiry.t | 3 ++- t/db_dependent/Circulation/issue.t | 3 ++- t/db_dependent/Circulation/maxsuspensiondays.t | 3 ++- t/db_dependent/Circulation/transferbook.t | 3 ++- t/db_dependent/Circulation/transfers.t | 3 ++- t/db_dependent/ClassSources.t | 3 ++- t/db_dependent/Clubs.t | 3 ++- t/db_dependent/Context.t | 3 ++- t/db_dependent/Contract.t | 3 ++- t/db_dependent/CourseReserves.t | 3 ++- t/db_dependent/CourseReserves/CourseItems.t | 3 ++- t/db_dependent/Creators/Lib.t | 3 ++- t/db_dependent/DecreaseLoanHighHolds.t | 3 ++- t/db_dependent/Exporter/Record.t | 3 ++- t/db_dependent/Filter_MARC_ViewPolicy.t | 3 ++- t/db_dependent/Fines.t | 3 ++- t/db_dependent/FrameworkPlugin.t | 3 ++- t/db_dependent/Heading.t | 3 ++- t/db_dependent/Heading_MARC21.t | 3 ++- t/db_dependent/Hold.t | 3 ++- t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t | 3 ++- t/db_dependent/Holds/ExpireReservesAutoFill.t | 3 ++- t/db_dependent/Holds/HoldFulfillmentPolicy.t | 3 ++- t/db_dependent/Holds/HoldItemtypeLimit.t | 3 ++- t/db_dependent/Holds/LocalHoldsPriority.t | 3 ++- t/db_dependent/Holds/RevertWaitingStatus.t | 3 ++- t/db_dependent/Holds/WaitingReserves.t | 3 ++- t/db_dependent/HoldsQueue.t | 3 ++- t/db_dependent/Holidays.t | 3 ++- t/db_dependent/ILSDI_Services.t | 3 ++- t/db_dependent/ImportBatch.t | 3 ++- t/db_dependent/ImportExportFramework.t | 3 ++- t/db_dependent/Installer.t | 3 ++- t/db_dependent/Items.t | 3 ++- t/db_dependent/Items/AutomaticItemModificationByAge.t | 3 ++- t/db_dependent/Items/GetAnalyticsCount.t | 3 ++- t/db_dependent/Items/GetItemsForInventory.t | 3 ++- t/db_dependent/Koha.t | 3 ++- t/db_dependent/Koha/Account.t | 3 ++- t/db_dependent/Koha/Account/DebitType.t | 3 ++- t/db_dependent/Koha/Account/DebitTypes.t | 3 ++- t/db_dependent/Koha/Account/Line.t | 3 ++- t/db_dependent/Koha/Account/Lines.t | 3 ++- t/db_dependent/Koha/Account/Offsets.t | 3 ++- t/db_dependent/Koha/Acquisition/Basket.t | 3 ++- t/db_dependent/Koha/Acquisition/Baskets.t | 3 ++- t/db_dependent/Koha/Acquisition/Budgets.t | 3 ++- t/db_dependent/Koha/Acquisition/Currencies.t | 3 ++- t/db_dependent/Koha/Acquisition/Fund.t | 3 ++- t/db_dependent/Koha/Acquisition/Funds.t | 3 ++- t/db_dependent/Koha/Acquisition/Invoice.t | 3 ++- t/db_dependent/Koha/Acquisition/Invoice/Adjustments.t | 3 ++- t/db_dependent/Koha/Acquisition/Order.t | 3 ++- t/db_dependent/Koha/Acquisition/Orders.t | 3 ++- t/db_dependent/Koha/ActionLogs.t | 3 ++- t/db_dependent/Koha/AdditionalField.t | 3 ++- t/db_dependent/Koha/ApiKey.t | 3 ++- t/db_dependent/Koha/ArticleRequest.t | 3 ++- t/db_dependent/Koha/ArticleRequests.t | 3 ++- t/db_dependent/Koha/Auth/Identity/Provider.t | 3 ++- t/db_dependent/Koha/Authorities.t | 3 ++- t/db_dependent/Koha/BackgroundJob/BatchCancelHold.t | 3 ++- t/db_dependent/Koha/BackgroundJob/BatchDeleteAuthority.t | 3 ++- t/db_dependent/Koha/BackgroundJob/BatchDeleteBiblio.t | 3 ++- t/db_dependent/Koha/BackgroundJob/BatchDeleteItem.t | 3 ++- t/db_dependent/Koha/BackgroundJob/BatchUpdateAuthority.t | 3 ++- t/db_dependent/Koha/BackgroundJob/BatchUpdateBiblio.t | 3 ++- .../Koha/BackgroundJob/BatchUpdateBiblioHoldsQueue.t | 3 ++- t/db_dependent/Koha/BackgroundJob/BatchUpdateItem.t | 3 ++- t/db_dependent/Koha/BackgroundJob/CreateEHoldingsFromBiblios.t | 3 ++- t/db_dependent/Koha/BackgroundJob/ErmSushiHarvester.t | 3 ++- t/db_dependent/Koha/BackgroundJob/ImportKBARTFile.t | 3 ++- t/db_dependent/Koha/BackgroundJob/MARCImportCommitBatch.t | 3 ++- t/db_dependent/Koha/BackgroundJob/MARCImportRevertBatch.t | 3 ++- t/db_dependent/Koha/BackgroundJob/PseudonymizeStatistic.t | 3 ++- t/db_dependent/Koha/BackgroundJob/StageMARCForImport.t | 3 ++- t/db_dependent/Koha/BackgroundJob/UpdateElasticIndex.t | 3 ++- t/db_dependent/Koha/BackgroundJobs.t | 3 ++- t/db_dependent/Koha/BackgroundJobs/BatchDeleteBiblio.t | 3 ++- t/db_dependent/Koha/BackgroundJobs/BatchDeleteItem.t | 3 ++- t/db_dependent/Koha/BackgroundJobs/BatchUpdateBiblio.t | 3 ++- t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t | 3 ++- t/db_dependent/Koha/BackgroundJobs/StageMARCForImport.t | 3 ++- t/db_dependent/Koha/Biblio.t | 3 ++- t/db_dependent/Koha/Biblio/ItemGroups.t | 3 ++- t/db_dependent/Koha/Biblio/Metadata.t | 3 ++- t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC.t | 3 ++- t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC/MARC21.t | 3 ++- t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC/UNIMARC.t | 3 ++- t/db_dependent/Koha/Biblio/host_record.t | 3 ++- t/db_dependent/Koha/BiblioFrameworks.t | 3 ++- t/db_dependent/Koha/Biblios.t | 3 ++- t/db_dependent/Koha/Bookings.t | 3 ++- t/db_dependent/Koha/Cash/Register.t | 3 ++- t/db_dependent/Koha/Cash/Register/Action.t | 3 ++- t/db_dependent/Koha/Cash/Register/Cashup.t | 3 ++- t/db_dependent/Koha/Cash/Register/Cashups.t | 3 ++- t/db_dependent/Koha/Charges/Fees.t | 3 ++- t/db_dependent/Koha/Charges/Sales.t | 3 ++- t/db_dependent/Koha/Checkout.t | 3 ++- t/db_dependent/Koha/Checkouts.t | 3 ++- t/db_dependent/Koha/Checkouts/Renewal.t | 3 ++- t/db_dependent/Koha/Checkouts/ReturnClaim.t | 3 ++- t/db_dependent/Koha/CirculationRules.t | 3 ++- .../CirculationRules/guess_article_requestable_itemtypes.t | 3 ++- t/db_dependent/Koha/Cities.t | 3 ++- t/db_dependent/Koha/ClassSortRules.t | 3 ++- t/db_dependent/Koha/ClassSources.t | 3 ++- t/db_dependent/Koha/ClassSplitRules.t | 3 ++- t/db_dependent/Koha/Club/Enrollment.t | 3 ++- t/db_dependent/Koha/Club/Hold.t | 3 ++- t/db_dependent/Koha/Config/SysPrefs.t | 3 ++- t/db_dependent/Koha/Course.t | 3 ++- t/db_dependent/Koha/Courses.t | 3 ++- t/db_dependent/Koha/CsvProfiles.t | 3 ++- t/db_dependent/Koha/CurbsidePickups.t | 3 ++- t/db_dependent/Koha/Database.t | 3 ++- t/db_dependent/Koha/Database/Commenter.t | 3 ++- t/db_dependent/Koha/Desks.t | 3 ++- t/db_dependent/Koha/ERM/Agreements.t | 3 ++- t/db_dependent/Koha/ERM/EUsage/CounterFile.t | 3 ++- t/db_dependent/Koha/ERM/EUsage/CounterLog.t | 3 ++- t/db_dependent/Koha/ERM/EUsage/SushiCounter.t | 3 ++- t/db_dependent/Koha/ERM/EUsage/UsageDataProvider.t | 3 ++- t/db_dependent/Koha/Edifact/File.t | 3 ++- t/db_dependent/Koha/Edifact/Order.t | 3 ++- t/db_dependent/Koha/Edifact/Transport.t | 3 ++- t/db_dependent/Koha/Filter/EmbedItems.t | 3 ++- t/db_dependent/Koha/Filter/EmbedItemsAvailability.t | 3 ++- t/db_dependent/Koha/Filter/ExpandCodedFields.t | 3 ++- t/db_dependent/Koha/Hold.t | 3 ++- t/db_dependent/Koha/Holds.t | 3 ++- t/db_dependent/Koha/ILL/Backend.t | 3 ++- t/db_dependent/Koha/ILL/Batch.t | 3 ++- t/db_dependent/Koha/ILL/Batch/Statuses.t | 3 ++- t/db_dependent/Koha/ILL/Batches.t | 3 ++- t/db_dependent/Koha/ILL/Comments.t | 3 ++- t/db_dependent/Koha/ILL/Request.t | 3 ++- t/db_dependent/Koha/ILL/Request/Attributes.t | 3 ++- t/db_dependent/Koha/ILL/Request/Config.t | 3 ++- t/db_dependent/Koha/ILL/Request/Logger.t | 3 ++- t/db_dependent/Koha/ILL/Request/SupplierUpdate.t | 3 ++- t/db_dependent/Koha/ILL/Request/SupplierUpdateProcessor.t | 3 ++- t/db_dependent/Koha/ILL/Request/Workflow/Availability.t | 3 ++- t/db_dependent/Koha/ILL/Request/Workflow/TypeDisclaimer.t | 3 ++- t/db_dependent/Koha/ILL/Requests.t | 3 ++- t/db_dependent/Koha/Import/Record/Auths.t | 3 ++- t/db_dependent/Koha/Import/Record/Biblios.t | 3 ++- t/db_dependent/Koha/Import/Record/Items.t | 3 ++- t/db_dependent/Koha/Import/Record/Matches.t | 3 ++- t/db_dependent/Koha/Import/Records.t | 3 ++- t/db_dependent/Koha/Item.t | 3 ++- t/db_dependent/Koha/Item/Attributes.t | 1 + t/db_dependent/Koha/Item/Search/Field.t | 3 ++- t/db_dependent/Koha/Item/Template.t | 3 ++- t/db_dependent/Koha/Item/Templates.t | 3 ++- t/db_dependent/Koha/Item/Transfer.t | 3 ++- t/db_dependent/Koha/Item/Transfers.t | 3 ++- t/db_dependent/Koha/ItemTypes.t | 3 ++- t/db_dependent/Koha/Items.t | 3 ++- t/db_dependent/Koha/Items/BatchUpdate.t | 1 + t/db_dependent/Koha/KeyboardShortcuts.t | 3 ++- t/db_dependent/Koha/Libraries.t | 3 ++- t/db_dependent/Koha/Library.t | 3 ++- t/db_dependent/Koha/Library/OverDriveInfos.t | 3 ++- t/db_dependent/Koha/MarcSubfieldStructures.t | 3 ++- t/db_dependent/Koha/Notice/Message.t | 3 ++- t/db_dependent/Koha/Notice/Template.t | 3 ++- t/db_dependent/Koha/Notice_Util.t | 3 ++- t/db_dependent/Koha/Notices.t | 3 ++- t/db_dependent/Koha/OAIHarvester.t | 3 ++- t/db_dependent/Koha/OAIServers.t | 3 ++- t/db_dependent/Koha/Object.t | 3 ++- t/db_dependent/Koha/Object/Mixin/AdditionalFields.t | 3 ++- t/db_dependent/Koha/Objects.t | 3 ++- t/db_dependent/Koha/Objects/Mixin/AdditionalFields.t | 3 ++- t/db_dependent/Koha/Objects/Mixin/ExtendedAttributes.t | 3 ++- t/db_dependent/Koha/Objects/Record/Collections.t | 3 ++- t/db_dependent/Koha/Old.t | 3 ++- t/db_dependent/Koha/Old/Checkout.t | 3 ++- t/db_dependent/Koha/Old/Checkouts.t | 3 ++- t/db_dependent/Koha/Old/Holds.t | 3 ++- t/db_dependent/Koha/Patron/Attribute.t | 3 ++- t/db_dependent/Koha/Patron/Attribute/Types.t | 3 ++- t/db_dependent/Koha/Patron/Categories.t | 3 ++- t/db_dependent/Koha/Patron/Category.t | 3 ++- t/db_dependent/Koha/Patron/Consents.t | 3 ++- t/db_dependent/Koha/Patron/Images.t | 3 ++- t/db_dependent/Koha/Patron/MessagePreference/Attributes.t | 3 ++- .../Koha/Patron/MessagePreference/Transport/Preferences.t | 3 ++- t/db_dependent/Koha/Patron/MessagePreference/Transport/Types.t | 3 ++- t/db_dependent/Koha/Patron/MessagePreference/Transports.t | 3 ++- t/db_dependent/Koha/Patron/MessagePreferences.t | 3 ++- t/db_dependent/Koha/Patron/Messages.t | 3 ++- t/db_dependent/Koha/Patron/Relationship.t | 3 ++- t/db_dependent/Koha/Patron/Restriction.t | 3 ++- t/db_dependent/Koha/Patron/Restriction/Type.t | 3 ++- t/db_dependent/Koha/Patron_generate_userid.t | 3 ++- t/db_dependent/Koha/Patrons.t | 3 ++- t/db_dependent/Koha/Plugins/Account_hooks.t | 3 ++- t/db_dependent/Koha/Plugins/Auth/Client.t | 3 ++- t/db_dependent/Koha/Plugins/BackgroundJob.t | 3 ++- t/db_dependent/Koha/Plugins/Barcode_transform_hooks.t | 3 ++- t/db_dependent/Koha/Plugins/Biblio_and_Items_plugin_hooks.t | 3 ++- t/db_dependent/Koha/Plugins/Broken.t | 3 ++- t/db_dependent/Koha/Plugins/Circulation_hooks.t | 3 ++- t/db_dependent/Koha/Plugins/Holds_hooks.t | 3 ++- t/db_dependent/Koha/Plugins/Ill_hooks.t | 3 ++- t/db_dependent/Koha/Plugins/KitchenSink.t | 3 ++- t/db_dependent/Koha/Plugins/Message_hooks.t | 3 ++- t/db_dependent/Koha/Plugins/Plugins.t | 3 ++- t/db_dependent/Koha/Plugins/TemplateIncludePathHook.t | 3 ++- t/db_dependent/Koha/Plugins/Transform_prepared_letter_hook.t | 3 ++- t/db_dependent/Koha/Plugins/authority_hooks.t | 3 ++- t/db_dependent/Koha/Policy/Holds.t | 3 ++- t/db_dependent/Koha/Policy/Patrons/Cardnumber.t | 3 ++- t/db_dependent/Koha/Preservation/Processings.t | 3 ++- t/db_dependent/Koha/Preservation/Trains.t | 3 ++- t/db_dependent/Koha/PseudonymizedTransaction.t | 3 ++- t/db_dependent/Koha/Quotes.t | 3 ++- t/db_dependent/Koha/REST/Plugin/Auth/IdP.t | 3 ++- t/db_dependent/Koha/REST/Plugin/Objects.t | 3 ++- t/db_dependent/Koha/REST/Plugin/Pagination.t | 3 ++- t/db_dependent/Koha/REST/Plugin/PluginRoutes.t | 3 ++- t/db_dependent/Koha/REST/V1.t | 3 ++- t/db_dependent/Koha/Ratings.t | 3 ++- t/db_dependent/Koha/Recall.t | 3 ++- t/db_dependent/Koha/Recalls.t | 3 ++- t/db_dependent/Koha/RecordSource.t | 3 ++- t/db_dependent/Koha/Reports.t | 3 ++- t/db_dependent/Koha/Reviews.t | 3 ++- t/db_dependent/Koha/SMS_Providers.t | 3 ++- t/db_dependent/Koha/SMTP/Server.t | 3 ++- t/db_dependent/Koha/SMTP/Servers.t | 3 ++- t/db_dependent/Koha/SearchEngine/Elasticsearch/Indexer.t | 3 ++- t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t | 3 ++- t/db_dependent/Koha/SearchEngine/Elasticsearch/Reset.t | 3 ++- t/db_dependent/Koha/SearchEngine/Indexer.t | 3 ++- t/db_dependent/Koha/SearchEngine/Search.t | 3 ++- t/db_dependent/Koha/SearchEngine/Zebra/QueryBuilder.t | 3 ++- t/db_dependent/Koha/SearchField.t | 3 ++- t/db_dependent/Koha/SearchFilters.t | 3 ++- t/db_dependent/Koha/Session.t | 3 ++- t/db_dependent/Koha/SharedContent.t | 3 ++- t/db_dependent/Koha/Statistic.t | 3 ++- t/db_dependent/Koha/Statistics.t | 3 ++- t/db_dependent/Koha/Subscription.t | 3 ++- t/db_dependent/Koha/Subscription/Numberpatterns.t | 3 ++- t/db_dependent/Koha/Subscription/Routinglists.t | 3 ++- t/db_dependent/Koha/Suggestion.t | 3 ++- t/db_dependent/Koha/Suggestions.t | 3 ++- t/db_dependent/Koha/Tags.t | 3 ++- t/db_dependent/Koha/Tags/Approvals.t | 3 ++- t/db_dependent/Koha/Tags/Indexes.t | 3 ++- t/db_dependent/Koha/Template/Plugin/Asset.t | 3 ++- t/db_dependent/Koha/Template/Plugin/Branches.t | 3 ++- t/db_dependent/Koha/Template/Plugin/CirculationRules.t | 3 ++- t/db_dependent/Koha/Template/Plugin/ClassSources.t | 3 ++- t/db_dependent/Koha/Template/Plugin/ExtendedAttributeTypes.t | 3 ++- t/db_dependent/Koha/Template/Plugin/ItemTypes.t | 3 ++- t/db_dependent/Koha/Template/Plugin/JSConsents.t | 3 ++- t/db_dependent/Koha/Template/Plugin/KohaPlugins.t | 3 ++- t/db_dependent/Koha/Template/Plugin/Notices.t | 3 ++- t/db_dependent/Koha/Template/Plugin/Registers.t | 3 ++- t/db_dependent/Koha/Template/Plugin/TablesSettings.t | 3 ++- t/db_dependent/Koha/Ticket.t | 3 ++- t/db_dependent/Koha/Ticket/Update.t | 3 ++- t/db_dependent/Koha/UI/Form/Builder/Biblio.t | 3 ++- t/db_dependent/Koha/UI/Form/Builder/Item.t | 3 ++- t/db_dependent/Koha/UI/Form/Builder/Item/itemtypes-default.t | 3 ++- t/db_dependent/Koha/Virtualshelf.t | 3 ++- t/db_dependent/Koha/Virtualshelves.t | 3 ++- t/db_dependent/Koha/XSLT/Base.t | 3 ++- t/db_dependent/Koha/XSLT/Security.t | 3 ++- t/db_dependent/Koha/Z3950Responder/GenericSession.t | 3 ++- t/db_dependent/Koha/Z3950Responder/Session.t | 3 ++- t/db_dependent/Koha/Z3950Responder/Session2.t | 3 ++- t/db_dependent/Koha/Z3950Responder/ZebraSession.t | 3 ++- t/db_dependent/Koha/Z3950Servers.t | 3 ++- t/db_dependent/Koha_Database.t | 3 ++- t/db_dependent/Koha_Elasticsearch.t | 3 ++- t/db_dependent/Koha_ExternalContent_OverDrive.t | 1 + t/db_dependent/Koha_MetadataRecord_Authority.t | 3 ++- t/db_dependent/Koha_Misc_Files.t | 3 ++- t/db_dependent/Labels/t_Batch.t | 3 ++- t/db_dependent/Labels/t_Label.t | 3 ++- t/db_dependent/Labels/t_Layout.t | 3 ++- t/db_dependent/Labels/t_Profile.t | 3 ++- t/db_dependent/Labels/t_Template.t | 3 ++- t/db_dependent/Languages.t | 3 ++- t/db_dependent/Letters/GetLetterTemplates.t | 3 ++- t/db_dependent/Letters/GetLettersAvailableForALibrary.t | 3 ++- t/db_dependent/Letters/TemplateToolkit.t | 3 ++- t/db_dependent/LibraryGroups.t | 3 ++- t/db_dependent/Linker_Default.t | 3 ++- t/db_dependent/Linker_FirstMatch.t | 3 ++- t/db_dependent/Log.t | 3 ++- t/db_dependent/MarcModificationTemplates.t | 3 ++- t/db_dependent/Matcher.t | 3 ++- t/db_dependent/Members.t | 3 ++- t/db_dependent/Members/IssueSlip.t | 3 ++- t/db_dependent/Members/Statistics.t | 3 ++- t/db_dependent/Message.t | 3 ++- t/db_dependent/MungeMarcPrice.t | 1 + t/db_dependent/OAI/AndSets.t | 3 ++- t/db_dependent/OAI/Server.t | 3 ++- t/db_dependent/OAI/Sets.t | 3 ++- t/db_dependent/Passwordrecovery.t | 3 ++- t/db_dependent/Patron/Borrower_Debarments.t | 3 ++- t/db_dependent/Patron/Borrower_Files.t | 3 ++- t/db_dependent/Patron/Borrower_PrevCheckout.t | 3 ++- t/db_dependent/Patron/Housebound.t | 3 ++- t/db_dependent/Patron/HouseboundProfiles.t | 3 ++- t/db_dependent/Patron/HouseboundRoles.t | 3 ++- t/db_dependent/Patron/HouseboundVisits.t | 3 ++- t/db_dependent/Patron/Messages.t | 3 ++- t/db_dependent/Patron/Messaging.t | 3 ++- t/db_dependent/Patron/Relationships.t | 3 ++- t/db_dependent/PatronLists.t | 3 ++- t/db_dependent/Patroncards.t | 3 ++- t/db_dependent/Patrons.t | 3 ++- t/db_dependent/Prices.t | 3 ++- t/db_dependent/Record.t | 3 ++- t/db_dependent/Record/Record.t | 3 ++- t/db_dependent/Record/marcrecord2csv.t | 3 ++- t/db_dependent/RecordProcessor_EmbedSeeFromHeadings.t | 1 + t/db_dependent/Reports.t | 3 ++- t/db_dependent/Reports/Guided.t | 3 ++- t/db_dependent/Reserves/AutoUnsuspendReserves.t | 3 ++- t/db_dependent/Reserves/GetReserveFee.t | 3 ++- t/db_dependent/Reserves/MultiplePerRecord.t | 3 ++- t/db_dependent/Reserves/ReserveSlip.t | 3 ++- t/db_dependent/RotatingCollections.t | 3 ++- t/db_dependent/SIP/ILS.t | 3 ++- t/db_dependent/SIP/Message.t | 3 ++- t/db_dependent/SIP/Patron.t | 3 ++- t/db_dependent/SIP/SIPServer.t | 3 ++- t/db_dependent/SIP/Transaction.t | 3 ++- t/db_dependent/Search.t | 3 ++- t/db_dependent/Search/History.t | 3 ++- t/db_dependent/Serials.t | 3 ++- t/db_dependent/Serials/Claims.t | 3 ++- t/db_dependent/Serials/Frequency.t | 3 ++- t/db_dependent/Serials/GetFictiveIssueNumber.t | 3 ++- t/db_dependent/Serials/GetNextDate.t | 3 ++- t/db_dependent/Serials/GetNextSeq.t | 3 ++- t/db_dependent/Serials/Numberpattern.t | 3 ++- t/db_dependent/Serials/ReNewSubscription.t | 3 ++- t/db_dependent/Serials/updateClaim.t | 3 ++- t/db_dependent/Serials_2.t | 3 ++- t/db_dependent/Service.t | 3 ++- t/db_dependent/ShelfBrowser.t | 3 ++- t/db_dependent/Sitemapper.t | 3 ++- t/db_dependent/SocialData.t | 3 ++- t/db_dependent/StockRotationItems.t | 3 ++- t/db_dependent/StockRotationRotas.t | 3 ++- t/db_dependent/StockRotationStages.t | 3 ++- t/db_dependent/SuggestionEngine_ExplodedTerms.t | 3 ++- t/db_dependent/Suggestions.t | 3 ++- t/db_dependent/TablesSettings.t | 3 ++- t/db_dependent/Tags.t | 3 ++- t/db_dependent/Template/Plugin/AdditionalContents.t | 3 ++- t/db_dependent/Template/Plugin/AuthorisedValues.t | 3 ++- t/db_dependent/Template/Plugin/Branches.t | 3 ++- t/db_dependent/Template/Plugin/Categories.t | 3 ++- t/db_dependent/Template/Plugin/CirculationRules.t | 3 ++- t/db_dependent/Template/Plugin/Frameworks.t | 3 ++- t/db_dependent/Template/Plugin/KohaDates.t | 3 ++- t/db_dependent/Template/Plugin/KohaTimes.t | 3 ++- t/db_dependent/Template/Plugin/NoticeTemplates.t | 3 ++- t/db_dependent/Template/Plugin/To.t | 3 ++- t/db_dependent/Templates.t | 3 ++- t/db_dependent/TestBuilder.t | 3 ++- t/db_dependent/Upload.t | 3 ++- t/db_dependent/UsageStats.t | 3 ++- t/db_dependent/Utils/Datatables_Virtualshelves.t | 3 ++- t/db_dependent/Virtualshelves.t | 3 ++- t/db_dependent/XSLT.t | 3 ++- t/db_dependent/api/v1/acquisitions_baskets.t | 3 ++- t/db_dependent/api/v1/acquisitions_funds.t | 3 ++- t/db_dependent/api/v1/acquisitions_orders.t | 3 ++- t/db_dependent/api/v1/acquisitions_vendor_issues.t | 3 ++- t/db_dependent/api/v1/acquisitions_vendors.t | 3 ++- t/db_dependent/api/v1/advanced_editor_macros.t | 3 ++- t/db_dependent/api/v1/article_requests.t | 3 ++- t/db_dependent/api/v1/auth.t | 3 ++- t/db_dependent/api/v1/auth_authenticate_api_request.t | 3 ++- t/db_dependent/api/v1/auth_basic.t | 3 ++- t/db_dependent/api/v1/authorised_values.t | 3 ++- t/db_dependent/api/v1/authorities.t | 3 ++- t/db_dependent/api/v1/bookings.t | 3 ++- t/db_dependent/api/v1/cashups.t | 3 ++- t/db_dependent/api/v1/checkouts.t | 3 ++- t/db_dependent/api/v1/circulation_rules.t | 3 ++- t/db_dependent/api/v1/cities.t | 3 ++- t/db_dependent/api/v1/clubs_holds.t | 3 ++- t/db_dependent/api/v1/deleted_biblios.t | 3 ++- t/db_dependent/api/v1/edifact_files.t | 3 ++- t/db_dependent/api/v1/erm_agreements.t | 3 ++- t/db_dependent/api/v1/erm_counter_files.t | 3 ++- t/db_dependent/api/v1/erm_counter_logs.t | 3 ++- t/db_dependent/api/v1/erm_counter_registries.t | 3 ++- t/db_dependent/api/v1/erm_custom_reports.t | 3 ++- t/db_dependent/api/v1/erm_documents.t | 3 ++- t/db_dependent/api/v1/erm_eholdings_packages.t | 3 ++- t/db_dependent/api/v1/erm_eholdings_resources.t | 3 ++- t/db_dependent/api/v1/erm_eholdings_titles.t | 3 ++- t/db_dependent/api/v1/erm_licenses.t | 3 ++- t/db_dependent/api/v1/erm_sushi_services.t | 3 ++- t/db_dependent/api/v1/erm_usage_data_providers.t | 3 ++- t/db_dependent/api/v1/erm_usage_titles.t | 3 ++- t/db_dependent/api/v1/erm_users.t | 3 ++- t/db_dependent/api/v1/extended_attribute_types.t | 3 ++- t/db_dependent/api/v1/idp.t | 3 ++- t/db_dependent/api/v1/ill_backends.t | 3 ++- t/db_dependent/api/v1/ill_batches.t | 3 ++- t/db_dependent/api/v1/ill_batchstatuses.t | 3 ++- t/db_dependent/api/v1/ill_requests.t | 3 ++- t/db_dependent/api/v1/import_batch_profiles.t | 3 ++- t/db_dependent/api/v1/import_record_matches.t | 3 ++- t/db_dependent/api/v1/item_groups.t | 3 ++- t/db_dependent/api/v1/item_types.t | 3 ++- t/db_dependent/api/v1/items.t | 3 ++- t/db_dependent/api/v1/items/bundled_items.t | 3 ++- t/db_dependent/api/v1/jobs.t | 3 ++- t/db_dependent/api/v1/libraries.t | 3 ++- t/db_dependent/api/v1/oauth.t | 1 + t/db_dependent/api/v1/pagination.t | 3 ++- t/db_dependent/api/v1/password_validation.t | 3 ++- t/db_dependent/api/v1/patron_categories.t | 3 ++- t/db_dependent/api/v1/patrons.t | 3 ++- t/db_dependent/api/v1/patrons_accounts.t | 3 ++- t/db_dependent/api/v1/patrons_checkouts.t | 3 ++- t/db_dependent/api/v1/patrons_extended_attributes.t | 3 ++- t/db_dependent/api/v1/patrons_holds.t | 3 ++- t/db_dependent/api/v1/patrons_password.t | 3 ++- t/db_dependent/api/v1/patrons_password_expiration.t | 3 ++- t/db_dependent/api/v1/patrons_recalls.t | 3 ++- t/db_dependent/api/v1/preservation_Processings.t | 3 ++- t/db_dependent/api/v1/preservation_Trains.t | 3 ++- t/db_dependent/api/v1/preservation_WaitingList.t | 3 ++- t/db_dependent/api/v1/provider.t | 3 ++- t/db_dependent/api/v1/public/lists.t | 3 ++- t/db_dependent/api/v1/query.t | 3 ++- t/db_dependent/api/v1/record_sources.t | 3 ++- t/db_dependent/api/v1/responses.t | 3 ++- t/db_dependent/api/v1/return_claims.t | 3 ++- t/db_dependent/api/v1/search_filters.t | 3 ++- t/db_dependent/api/v1/smtp_servers.t | 3 ++- t/db_dependent/api/v1/stockrotation_rotas.t | 3 ++- t/db_dependent/api/v1/stockrotationstage.t | 3 ++- t/db_dependent/api/v1/suggestions.t | 3 ++- t/db_dependent/api/v1/ticket_updates.t | 3 ++- t/db_dependent/api/v1/tickets.t | 3 ++- t/db_dependent/api/v1/transfer_limits.t | 3 ++- t/db_dependent/api/v1/unhandled_exceptions.t | 3 ++- t/db_dependent/check_kohastructure.t | 3 ++- t/db_dependent/check_sysprefs.t | 3 ++- t/db_dependent/db_structure.t | 1 + t/db_dependent/misc/translator/xgettext-installer.t | 3 ++- t/db_dependent/misc/translator/xgettext-pref.t | 3 ++- t/db_dependent/misc/translator/xgettext-tt2.t | 3 ++- t/db_dependent/mojo/csrf.t | 3 ++- t/db_dependent/rollingloans.t | 3 ++- t/db_dependent/selenium/01-installation.t | 3 ++- t/db_dependent/selenium/administration_tasks.t | 3 ++- t/db_dependent/selenium/authentication.t | 3 ++- t/db_dependent/selenium/authentication_2fa.t | 3 ++- t/db_dependent/selenium/batch_item_modification.t | 3 ++- t/db_dependent/selenium/ilsdi.t | 3 ++- t/db_dependent/selenium/opac_holds.t | 3 ++- t/db_dependent/selenium/patrons_search.t | 1 + t/db_dependent/selenium/remove_from_cart.t | 1 + t/db_dependent/selenium/self_registration.t | 1 + t/db_dependent/selenium/system_preferences_search.t | 1 + t/db_dependent/selenium/update_child_to_adult.t | 1 + t/db_dependent/sysprefs.t | 3 ++- t/db_dependent/www/regressions.t | 3 ++- t/db_dependent/www/rest_api.t | 1 + t/db_dependent/yaml.t | 1 + t/template_filters.t | 3 ++- t/timezones.t | 3 ++- 663 files changed, 1295 insertions(+), 632 deletions(-) diff --git a/t/00-check-atomic-updates.t b/t/00-check-atomic-updates.t index 75bab4576f..8ac7818ccf 100755 --- a/t/00-check-atomic-updates.t +++ b/t/00-check-atomic-updates.t @@ -16,6 +16,7 @@ # along with Koha; if not, see . use Modern::Perl; +use Test::NoWarnings; use Test::More; use File::Find; diff --git a/t/00-deprecated.t b/t/00-deprecated.t index 6eba09deba..a25495ea03 100755 --- a/t/00-deprecated.t +++ b/t/00-deprecated.t @@ -5,7 +5,8 @@ # use warnings; use strict; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use File::Find; use Cwd; diff --git a/t/00-load.t b/t/00-load.t index d518f34fd1..34c3680017 100755 --- a/t/00-load.t +++ b/t/00-load.t @@ -19,6 +19,7 @@ use Modern::Perl; +use Test::NoWarnings; use Test::More; use File::Spec; use File::Find; diff --git a/t/00-merge-conflict-markers.t b/t/00-merge-conflict-markers.t index 86f7fa5f8c..4c8e9a9351 100755 --- a/t/00-merge-conflict-markers.t +++ b/t/00-merge-conflict-markers.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use File::Spec; use File::Find; use IO::File; diff --git a/t/00-testcritic.t b/t/00-testcritic.t index 66458df707..43192e3b2e 100755 --- a/t/00-testcritic.t +++ b/t/00-testcritic.t @@ -3,6 +3,7 @@ # This script can be used to run perlcritic on perl files in koha use Modern::Perl; +use Test::NoWarnings; use Test::More; use English qw(-no_match_vars); diff --git a/t/00-valid-xml.t b/t/00-valid-xml.t index 4cc8d9dd89..f66fe4ba7e 100755 --- a/t/00-valid-xml.t +++ b/t/00-valid-xml.t @@ -18,6 +18,7 @@ use strict; use warnings; +use Test::NoWarnings; use Test::More; use File::Spec; use File::Find; diff --git a/t/Acquisition/CanUserManageBasket.t b/t/Acquisition/CanUserManageBasket.t index 462189ecde..ae4e3418c9 100755 --- a/t/Acquisition/CanUserManageBasket.t +++ b/t/Acquisition/CanUserManageBasket.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 43; +use Test::NoWarnings; +use Test::More tests => 44; use C4::Acquisition qw( GetBasket GetBasketUsers CanUserManageBasket ); diff --git a/t/Auth.t b/t/Auth.t index d5b2f1e7fa..98bb09e196 100755 --- a/t/Auth.t +++ b/t/Auth.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use Test::Warn; use C4::Auth qw( in_iprange ); diff --git a/t/AuthoritiesMarc_MARC21.t b/t/AuthoritiesMarc_MARC21.t index 4ed2e1dfb3..89457d6d27 100755 --- a/t/AuthoritiesMarc_MARC21.t +++ b/t/AuthoritiesMarc_MARC21.t @@ -8,7 +8,8 @@ use warnings; use Test::MockModule; use Test::MockObject; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use t::lib::Mocks; use MARC::Record; diff --git a/t/AuthoritiesMarc_UNIMARC.t b/t/AuthoritiesMarc_UNIMARC.t index 84febb8bbf..36500f01df 100755 --- a/t/AuthoritiesMarc_UNIMARC.t +++ b/t/AuthoritiesMarc_UNIMARC.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; BEGIN { use_ok('C4::AuthoritiesMarc::UNIMARC', qw( default_auth_type_location )); diff --git a/t/Barcodes_EAN13.t b/t/Barcodes_EAN13.t index c3c9046a4c..f53b30e97c 100755 --- a/t/Barcodes_EAN13.t +++ b/t/Barcodes_EAN13.t @@ -5,7 +5,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Barcodes::EAN13'); diff --git a/t/Barcodes_annual.t b/t/Barcodes_annual.t index b89d207e42..2e904fe187 100755 --- a/t/Barcodes_annual.t +++ b/t/Barcodes_annual.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Barcodes::annual'); diff --git a/t/Barcodes_hbyymmincr.t b/t/Barcodes_hbyymmincr.t index a2377d3add..d0ea010d54 100755 --- a/t/Barcodes_hbyymmincr.t +++ b/t/Barcodes_hbyymmincr.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Barcodes::hbyymmincr'); diff --git a/t/Barcodes_incremental.t b/t/Barcodes_incremental.t index 1bde5d3638..af501bb01a 100755 --- a/t/Barcodes_incremental.t +++ b/t/Barcodes_incremental.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Barcodes::incremental'); diff --git a/t/Biblio.t b/t/Biblio.t index 3fbf90402a..bcc86c4cb3 100755 --- a/t/Biblio.t +++ b/t/Biblio.t @@ -17,6 +17,7 @@ use Modern::Perl; +use Test::NoWarnings; use Test::More; use Test::MockModule; use Test::Warn; diff --git a/t/Biblio/TransformHtmlToXml.t b/t/Biblio/TransformHtmlToXml.t index 0f10c28255..5a2466a116 100755 --- a/t/Biblio/TransformHtmlToXml.t +++ b/t/Biblio/TransformHtmlToXml.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use t::lib::Mocks; use XML::Simple; diff --git a/t/Biblio2.t b/t/Biblio2.t index 858bac89bf..107170dc8e 100755 --- a/t/Biblio2.t +++ b/t/Biblio2.t @@ -1,6 +1,7 @@ #!/usr/bin/perl use Modern::Perl; +use Test::NoWarnings; use Test::More; use Test::MockModule; diff --git a/t/Budgets.t b/t/Budgets.t index 96d0af4885..98521e8652 100755 --- a/t/Budgets.t +++ b/t/Budgets.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Budgets'); diff --git a/t/Budgets/CanUserModifyBudget.t b/t/Budgets/CanUserModifyBudget.t index b2c8454d71..f66e1bc1af 100755 --- a/t/Budgets/CanUserModifyBudget.t +++ b/t/Budgets/CanUserModifyBudget.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 134; +use Test::NoWarnings; +use Test::More tests => 135; use C4::Budgets qw( GetBudget GetBudgetUsers CanUserModifyBudget ); use t::lib::Mocks; diff --git a/t/Budgets/CanUserUseBudget.t b/t/Budgets/CanUserUseBudget.t index 5c528b4f88..73303b9034 100755 --- a/t/Budgets/CanUserUseBudget.t +++ b/t/Budgets/CanUserUseBudget.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 70; +use Test::NoWarnings; +use Test::More tests => 71; use C4::Budgets qw( GetBudget GetBudgetUsers CanUserUseBudget ); use t::lib::Mocks; diff --git a/t/Charset.t b/t/Charset.t index 3e92883e0b..8166539946 100755 --- a/t/Charset.t +++ b/t/Charset.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 16; +use Test::NoWarnings; +use Test::More tests => 17; use Encode qw( is_utf8 ); use MARC::Record; diff --git a/t/Circulation/AgeRestrictionMarkers.t b/t/Circulation/AgeRestrictionMarkers.t index 218b710cc1..7aba00af7b 100755 --- a/t/Circulation/AgeRestrictionMarkers.t +++ b/t/Circulation/AgeRestrictionMarkers.t @@ -22,7 +22,8 @@ use Modern::Perl; use DateTime; use Koha::DateUtils qw( dt_from_string ); -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::Warn; use t::lib::Mocks; diff --git a/t/Circulation_barcodedecode.t b/t/Circulation_barcodedecode.t index d5f31c9533..41d60914b6 100755 --- a/t/Circulation_barcodedecode.t +++ b/t/Circulation_barcodedecode.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 29; +use Test::NoWarnings; +use Test::More tests => 30; use Test::Warn; use C4::Context; diff --git a/t/ClassSortRoutine.t b/t/ClassSortRoutine.t index be379a29e6..578bf8180a 100755 --- a/t/ClassSortRoutine.t +++ b/t/ClassSortRoutine.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::ClassSortRoutine'); diff --git a/t/ClassSortRoutine_Dewey.t b/t/ClassSortRoutine_Dewey.t index f4dc8e72e1..b30fa2438e 100755 --- a/t/ClassSortRoutine_Dewey.t +++ b/t/ClassSortRoutine_Dewey.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; BEGIN { use_ok('C4::ClassSortRoutine::Dewey', qw( get_class_sort_key )); diff --git a/t/ClassSortRoutine_Generic.t b/t/ClassSortRoutine_Generic.t index 09c3dd7292..493ab7d6d5 100755 --- a/t/ClassSortRoutine_Generic.t +++ b/t/ClassSortRoutine_Generic.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; BEGIN { use_ok('C4::ClassSortRoutine::Generic', qw( get_class_sort_key )); diff --git a/t/ClassSortRoutine_LCC.t b/t/ClassSortRoutine_LCC.t index bfabee440d..db74d16974 100755 --- a/t/ClassSortRoutine_LCC.t +++ b/t/ClassSortRoutine_LCC.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; BEGIN { use_ok('C4::ClassSortRoutine::LCC', qw( get_class_sort_key )); diff --git a/t/ClassSource.t b/t/ClassSource.t index ffb3104fcc..17d75937d3 100755 --- a/t/ClassSource.t +++ b/t/ClassSource.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::ClassSource'); diff --git a/t/Context.t b/t/Context.t index 9903719e8d..d5b14dc349 100755 --- a/t/Context.t +++ b/t/Context.t @@ -18,7 +18,8 @@ use Modern::Perl; use DBI; -use Test::More tests => 35; +use Test::NoWarnings; +use Test::More tests => 36; use Test::MockModule; use Test::Warn; use YAML::XS; diff --git a/t/Contract.t b/t/Contract.t index 87df569a43..85673d5800 100755 --- a/t/Contract.t +++ b/t/Contract.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Contract'); diff --git a/t/CookieManager.t b/t/CookieManager.t index 3df60d24a5..576ccca55b 100755 --- a/t/CookieManager.t +++ b/t/CookieManager.t @@ -20,7 +20,8 @@ use Modern::Perl; use CGI; use Data::Dumper qw(Dumper); -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use t::lib::Mocks; diff --git a/t/Creators.t b/t/Creators.t index b1206af16a..6a605dad8c 100755 --- a/t/Creators.t +++ b/t/Creators.t @@ -14,7 +14,8 @@ use strict; use warnings; use File::Temp qw/ tempfile /; -use Test::More tests => 41; +use Test::NoWarnings; +use Test::More tests => 42; BEGIN { use_ok('C4::Creators'); diff --git a/t/DateUtils.t b/t/DateUtils.t index b26be34c53..c0f6a93cc1 100755 --- a/t/DateUtils.t +++ b/t/DateUtils.t @@ -4,7 +4,8 @@ use DateTime::TimeZone; use C4::Context; -use Test::More tests => 83; +use Test::NoWarnings; +use Test::More tests => 84; use Test::MockModule; use Test::Warn; diff --git a/t/EdiInvoice.t b/t/EdiInvoice.t index 3800b75126..d8eee6cad6 100755 --- a/t/EdiInvoice.t +++ b/t/EdiInvoice.t @@ -3,7 +3,8 @@ use strict; use warnings; use FindBin qw( $Bin ); -use Test::More tests => 26; +use Test::NoWarnings; +use Test::More tests => 27; use Koha::EDI; BEGIN { use_ok('Koha::Edifact') } diff --git a/t/Ediorder.t b/t/Ediorder.t index 1b89f8a9c5..1142d263d4 100755 --- a/t/Ediorder.t +++ b/t/Ediorder.t @@ -3,7 +3,8 @@ use strict; use warnings; use FindBin qw( $Bin ); -use Test::More tests => 13; +use Test::NoWarnings; +use Test::More tests => 14; use t::lib::Mocks; BEGIN { use_ok('Koha::Edifact::Order') } diff --git a/t/Ediordrsp.t b/t/Ediordrsp.t index 6d410dc8b8..d49ce9d5d0 100755 --- a/t/Ediordrsp.t +++ b/t/Ediordrsp.t @@ -3,7 +3,8 @@ use strict; use warnings; use FindBin qw( $Bin ); -use Test::More tests => 16; +use Test::NoWarnings; +use Test::More tests => 17; BEGIN { use_ok('Koha::Edifact') } diff --git a/t/External/BakerTaylor.t b/t/External/BakerTaylor.t index e4809359c6..4d7733b65e 100755 --- a/t/External/BakerTaylor.t +++ b/t/External/BakerTaylor.t @@ -4,7 +4,8 @@ use Modern::Perl; -use Test::More tests => 9; +use Test::NoWarnings; +use Test::More tests => 10; use t::lib::Mocks; BEGIN { diff --git a/t/External/Syndetics.t b/t/External/Syndetics.t index e335c7458e..5a36645d3e 100755 --- a/t/External/Syndetics.t +++ b/t/External/Syndetics.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::External::Syndetics'); diff --git a/t/Form_MessagingPreferences.t b/t/Form_MessagingPreferences.t index 483e1331e3..a27171a254 100755 --- a/t/Form_MessagingPreferences.t +++ b/t/Form_MessagingPreferences.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Form::MessagingPreferences'); diff --git a/t/HtmlTags.t b/t/HtmlTags.t index 3746d2c8c2..03afb1b555 100755 --- a/t/HtmlTags.t +++ b/t/HtmlTags.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; BEGIN { use_ok('Koha::Template::Plugin::HtmlTags'); } diff --git a/t/Installer_PerlModules.t b/t/Installer_PerlModules.t index 0a81da024d..ffd84f6be1 100755 --- a/t/Installer_PerlModules.t +++ b/t/Installer_PerlModules.t @@ -5,7 +5,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::Warn; BEGIN { diff --git a/t/ItemCirculationAlertPreference.t b/t/ItemCirculationAlertPreference.t index d937c26fcb..22b666bc4e 100755 --- a/t/ItemCirculationAlertPreference.t +++ b/t/ItemCirculationAlertPreference.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::ItemCirculationAlertPreference'); diff --git a/t/Koha/Auth/Permissions.t b/t/Koha/Auth/Permissions.t index 4b398646f3..3ad19647aa 100755 --- a/t/Koha/Auth/Permissions.t +++ b/t/Koha/Auth/Permissions.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use_ok('Koha::Auth::Permissions'); diff --git a/t/Koha/Authority/ControlledIndicators.t b/t/Koha/Authority/ControlledIndicators.t index 1d51e3027d..bff00632b3 100755 --- a/t/Koha/Authority/ControlledIndicators.t +++ b/t/Koha/Authority/ControlledIndicators.t @@ -4,7 +4,8 @@ use Modern::Perl; use Data::Dumper qw/Dumper/; use MARC::Record; use MARC::Field; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use t::lib::Mocks; use Koha::Authority::ControlledIndicators; diff --git a/t/Koha/Config.t b/t/Koha/Config.t index d394f65709..00e1d79c86 100755 --- a/t/Koha/Config.t +++ b/t/Koha/Config.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use FindBin qw($Bin $Script); use_ok('Koha::Config'); diff --git a/t/Koha/Database/Columns.t b/t/Koha/Database/Columns.t index ff9191c678..84b7abd552 100755 --- a/t/Koha/Database/Columns.t +++ b/t/Koha/Database/Columns.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::MockModule; use FindBin qw($Bin); use Encode; diff --git a/t/Koha/DateTime/Format/RFC3339.t b/t/Koha/DateTime/Format/RFC3339.t index 442ef9c430..e3df3a569e 100755 --- a/t/Koha/DateTime/Format/RFC3339.t +++ b/t/Koha/DateTime/Format/RFC3339.t @@ -1,6 +1,7 @@ #!/usr/bin/perl use Modern::Perl; +use Test::NoWarnings; use Test::More; use Test::Exception; diff --git a/t/Koha/DateTime/Format/SQL.t b/t/Koha/DateTime/Format/SQL.t index 9e3003c398..1668aef620 100755 --- a/t/Koha/DateTime/Format/SQL.t +++ b/t/Koha/DateTime/Format/SQL.t @@ -4,6 +4,7 @@ use Modern::Perl; use DateTime::TimeZone; use Test::Exception; use Test::MockModule; +use Test::NoWarnings; use Test::More; BEGIN { use_ok('Koha::DateTime::Format::SQL'); } diff --git a/t/Koha/Email.t b/t/Koha/Email.t index 69fed9c875..61e6326dbb 100755 --- a/t/Koha/Email.t +++ b/t/Koha/Email.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::MockModule; use Test::Exception; diff --git a/t/Koha/Exceptions.t b/t/Koha/Exceptions.t index 9a6ce3ab37..de2a4b2d47 100755 --- a/t/Koha/Exceptions.t +++ b/t/Koha/Exceptions.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use Test::MockObject; use Test::Exception; diff --git a/t/Koha/I18N.t b/t/Koha/I18N.t index 6524e66e80..1b5742fabd 100755 --- a/t/Koha/I18N.t +++ b/t/Koha/I18N.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 35; +use Test::NoWarnings; +use Test::More tests => 36; use Test::MockModule; use FindBin qw($Bin); use Encode; diff --git a/t/Koha/Installer/Output.t b/t/Koha/Installer/Output.t index 46dc91c6d4..1b94f17912 100755 --- a/t/Koha/Installer/Output.t +++ b/t/Koha/Installer/Output.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use Koha::Installer::Output qw(say_warning say_failure say_success say_info); diff --git a/t/Koha/ItemType.t b/t/Koha/ItemType.t index ea18951198..fe77716629 100755 --- a/t/Koha/ItemType.t +++ b/t/Koha/ItemType.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; BEGIN { use_ok('Koha::ItemType'); diff --git a/t/Koha/Middleware/RealIP.t b/t/Koha/Middleware/RealIP.t index 2ec8e51b89..bd027b8c62 100755 --- a/t/Koha/Middleware/RealIP.t +++ b/t/Koha/Middleware/RealIP.t @@ -20,7 +20,8 @@ use strict; use warnings; -use Test::More tests => 11; +use Test::NoWarnings; +use Test::More tests => 12; use Test::Warn; use t::lib::Mocks; diff --git a/t/Koha/Middleware/SetEnv.t b/t/Koha/Middleware/SetEnv.t index 6872c2c3a5..049b6b22d8 100755 --- a/t/Koha/Middleware/SetEnv.t +++ b/t/Koha/Middleware/SetEnv.t @@ -20,7 +20,8 @@ use strict; use warnings; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Warn; use t::lib::Mocks; diff --git a/t/Koha/Object/Message.t b/t/Koha/Object/Message.t index 5a513753b2..9f7c391c7b 100755 --- a/t/Koha/Object/Message.t +++ b/t/Koha/Object/Message.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Exception; BEGIN { diff --git a/t/Koha/Plugins/SafeURL.t b/t/Koha/Plugins/SafeURL.t index ae0cf40d05..054122ed7a 100755 --- a/t/Koha/Plugins/SafeURL.t +++ b/t/Koha/Plugins/SafeURL.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Template; subtest 'test double-encoding prevention' => sub { diff --git a/t/Koha/Plugins/Tab.t b/t/Koha/Plugins/Tab.t index 7502967499..871dbf2d2a 100755 --- a/t/Koha/Plugins/Tab.t +++ b/t/Koha/Plugins/Tab.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Exception; use Koha::Plugins::Tab; diff --git a/t/Koha/REST/Plugin/Query.t b/t/Koha/REST/Plugin/Query.t index ac5a803a9b..1f3e09ea07 100755 --- a/t/Koha/REST/Plugin/Query.t +++ b/t/Koha/REST/Plugin/Query.t @@ -373,7 +373,8 @@ sub to_model { # The tests -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; use Test::Mojo; subtest 'extract_reserved_params() tests' => sub { diff --git a/t/Koha/Result/Boolean.t b/t/Koha/Result/Boolean.t index 8a1a9c9429..42c2f3b87e 100755 --- a/t/Koha/Result/Boolean.t +++ b/t/Koha/Result/Boolean.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use_ok('Koha::Result::Boolean'); diff --git a/t/Koha/Script.t b/t/Koha/Script.t index 527ff24ddd..97e5efc950 100755 --- a/t/Koha/Script.t +++ b/t/Koha/Script.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::Exception; BEGIN { use_ok('Koha::Script') } diff --git a/t/Koha/Script_cron.t b/t/Koha/Script_cron.t index a84963f124..1e03a487ff 100755 --- a/t/Koha/Script_cron.t +++ b/t/Koha/Script_cron.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; BEGIN { use_ok( "Koha::Script", '-cron' ) } diff --git a/t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t b/t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t index b6b670d7d5..913e092c48 100755 --- a/t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t +++ b/t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use t::lib::Mocks; use_ok('Koha::SearchEngine::Elasticsearch::QueryBuilder'); diff --git a/t/Koha/SearchEngine/Elasticsearch/Search.t b/t/Koha/SearchEngine/Elasticsearch/Search.t index 1ca6bd359e..ca707f34ed 100755 --- a/t/Koha/SearchEngine/Elasticsearch/Search.t +++ b/t/Koha/SearchEngine/Elasticsearch/Search.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use t::lib::Mocks; use Encode qw( encode ); diff --git a/t/Koha/SearchEngine/Search.t b/t/Koha/SearchEngine/Search.t index cf34a6f55a..e4038ac91b 100755 --- a/t/Koha/SearchEngine/Search.t +++ b/t/Koha/SearchEngine/Search.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Exception; use t::lib::Mocks; diff --git a/t/Koha/SearchEngine/Zebra/QueryBuilder.t b/t/Koha/SearchEngine/Zebra/QueryBuilder.t index 6dca03263d..2389b0c086 100755 --- a/t/Koha/SearchEngine/Zebra/QueryBuilder.t +++ b/t/Koha/SearchEngine/Zebra/QueryBuilder.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use_ok('Koha::SearchEngine::Zebra::QueryBuilder'); diff --git a/t/Koha/Util/MARC.t b/t/Koha/Util/MARC.t index 95e9c21397..322f2b9cb5 100755 --- a/t/Koha/Util/MARC.t +++ b/t/Koha/Util/MARC.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use MARC::Record; use MARC::Field; diff --git a/t/Koha/Util/Navigation.t b/t/Koha/Util/Navigation.t index 9ff50ea238..d0ac266bce 100755 --- a/t/Koha/Util/Navigation.t +++ b/t/Koha/Util/Navigation.t @@ -1,6 +1,7 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::MockObject; use t::lib::Mocks; diff --git a/t/Koha/Util/Normalize.t b/t/Koha/Util/Normalize.t index 317ad8cbf8..bcfd334ab8 100755 --- a/t/Koha/Util/Normalize.t +++ b/t/Koha/Util/Normalize.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::Warn; BEGIN { diff --git a/t/Koha/Util/OpenDocument.t b/t/Koha/Util/OpenDocument.t index 898c38be9f..e9b00a074a 100755 --- a/t/Koha/Util/OpenDocument.t +++ b/t/Koha/Util/OpenDocument.t @@ -18,7 +18,8 @@ use Modern::Perl; use File::Temp qw/tempfile/; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; BEGIN { use_ok('Koha::Util::OpenDocument'); } diff --git a/t/Koha/Z3950responder.t b/t/Koha/Z3950responder.t index 7f2219783b..bb4e64e12b 100755 --- a/t/Koha/Z3950responder.t +++ b/t/Koha/Z3950responder.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; BEGIN { use_ok('Koha::Z3950Responder'); diff --git a/t/Koha_MetadataRecord.t b/t/Koha_MetadataRecord.t index cb24fb8659..6641321e7b 100755 --- a/t/Koha_MetadataRecord.t +++ b/t/Koha_MetadataRecord.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Warn; use Koha::RecordProcessor; diff --git a/t/Koha_SearchEngine_Elasticsearch_Browse.t b/t/Koha_SearchEngine_Elasticsearch_Browse.t index 986c4ba658..964ace8c50 100755 --- a/t/Koha_SearchEngine_Elasticsearch_Browse.t +++ b/t/Koha_SearchEngine_Elasticsearch_Browse.t @@ -19,6 +19,7 @@ use Modern::Perl; +use Test::NoWarnings; use Test::More; use_ok('Koha::SearchEngine::Elasticsearch::Browse'); diff --git a/t/Koha_Template_Plugin_HtmlId.t b/t/Koha_Template_Plugin_HtmlId.t index 7e767a2cc9..2d287a1735 100755 --- a/t/Koha_Template_Plugin_HtmlId.t +++ b/t/Koha_Template_Plugin_HtmlId.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use_ok( 'Koha::Template::Plugin::HtmlId' ); diff --git a/t/Koha_Template_Plugin_Koha.t b/t/Koha_Template_Plugin_Koha.t index a8d66feb9d..66a893a592 100755 --- a/t/Koha_Template_Plugin_Koha.t +++ b/t/Koha_Template_Plugin_Koha.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use t::lib::Mocks; diff --git a/t/Koha_Util_FrameworkPlugin.t b/t/Koha_Util_FrameworkPlugin.t index a30e3e79d5..f8b0df572d 100755 --- a/t/Koha_Util_FrameworkPlugin.t +++ b/t/Koha_Util_FrameworkPlugin.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use_ok( 'Koha::Util::FrameworkPlugin', qw(wrapper date_entered) ); diff --git a/t/Koha_Util_MARC.t b/t/Koha_Util_MARC.t index e33867003c..ca3ca5d663 100755 --- a/t/Koha_Util_MARC.t +++ b/t/Koha_Util_MARC.t @@ -23,7 +23,8 @@ use strict; use warnings; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use MARC::Record; BEGIN { diff --git a/t/Koha_XSLT_HTTPS.t b/t/Koha_XSLT_HTTPS.t index a5d1da4aaa..40f5efcdc0 100755 --- a/t/Koha_XSLT_HTTPS.t +++ b/t/Koha_XSLT_HTTPS.t @@ -22,7 +22,8 @@ use Modern::Perl; use Test::Exception; use Test::MockModule; use Test::MockObject; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::XSLT::HTTPS; diff --git a/t/Labels_split_Regex.t b/t/Labels_split_Regex.t index b69e03b725..35c38a5fb0 100755 --- a/t/Labels_split_Regex.t +++ b/t/Labels_split_Regex.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use C4::ClassSplitRoutine::RegEx qw( split_callnumber ); my $callnumbers = { diff --git a/t/Labels_split_ccn.t b/t/Labels_split_ccn.t index c6db3c6681..5476d896b8 100755 --- a/t/Labels_split_ccn.t +++ b/t/Labels_split_ccn.t @@ -20,6 +20,7 @@ use strict; use warnings; +use Test::NoWarnings; use Test::More; BEGIN { diff --git a/t/Labels_split_ddcn.t b/t/Labels_split_ddcn.t index eaf92e8e9c..62c335e540 100755 --- a/t/Labels_split_ddcn.t +++ b/t/Labels_split_ddcn.t @@ -20,6 +20,7 @@ use strict; use warnings; +use Test::NoWarnings; use Test::More; BEGIN { diff --git a/t/Labels_split_lccn.t b/t/Labels_split_lccn.t index baca48c134..6b72c0849a 100755 --- a/t/Labels_split_lccn.t +++ b/t/Labels_split_lccn.t @@ -21,6 +21,7 @@ use strict; use warnings; use C4::ClassSplitRoutine::LCC qw( split_callnumber ); +use Test::NoWarnings; use Test::More; BEGIN { diff --git a/t/Languages.t b/t/Languages.t index 717e1f9615..2bd1f9ef0a 100755 --- a/t/Languages.t +++ b/t/Languages.t @@ -18,7 +18,8 @@ # with Koha; if not, see . use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::MockModule; use CGI qw ( -utf8 ); use Koha::Cache::Memory::Lite; diff --git a/t/Logger.t b/t/Logger.t index 4281c3b6ff..815f72a1c5 100755 --- a/t/Logger.t +++ b/t/Logger.t @@ -22,7 +22,8 @@ use Koha::Logger; use t::lib::Mocks; use File::Temp qw/tempfile/; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Warn; use Test::Exception; diff --git a/t/Makefile.t b/t/Makefile.t index a0cdeab5cc..20e0b8190a 100755 --- a/t/Makefile.t +++ b/t/Makefile.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use File::Slurp; my @files = `git ls-tree HEAD|tr -s '\t' ' '|cut -d' ' -f4`; diff --git a/t/Members_Messaging.t b/t/Members_Messaging.t index 93950084c1..e78e9986db 100755 --- a/t/Members_Messaging.t +++ b/t/Members_Messaging.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Members::Messaging'); diff --git a/t/Number/Price.t b/t/Number/Price.t index d881750c17..745984f689 100755 --- a/t/Number/Price.t +++ b/t/Number/Price.t @@ -1,6 +1,7 @@ use Modern::Perl; -use Test::More tests => 37; +use Test::NoWarnings; +use Test::More tests => 38; use Test::MockModule; use t::lib::Mocks; diff --git a/t/OpenLibrarySearch.t b/t/OpenLibrarySearch.t index b0865e618b..b152f83c01 100755 --- a/t/OpenLibrarySearch.t +++ b/t/OpenLibrarySearch.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use LWP::Simple; use JSON; my $content = get("https://openlibrary.org/search.json?q=9780201038095"); diff --git a/t/Output.t b/t/Output.t index 55ca2dc436..19c862af1f 100755 --- a/t/Output.t +++ b/t/Output.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use Test::Warn; use Test::MockModule; diff --git a/t/Output_JSONStream.t b/t/Output_JSONStream.t index bf7b1842c1..7528cf8f28 100755 --- a/t/Output_JSONStream.t +++ b/t/Output_JSONStream.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; BEGIN { use_ok('C4::Output::JSONStream'); diff --git a/t/Patroncards.t b/t/Patroncards.t index 60a7237fd8..4a3642a10b 100755 --- a/t/Patroncards.t +++ b/t/Patroncards.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Patroncards'); diff --git a/t/Patroncards_Batch.t b/t/Patroncards_Batch.t index a0743ff8d9..f94dd684c7 100755 --- a/t/Patroncards_Batch.t +++ b/t/Patroncards_Batch.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Patroncards::Batch'); diff --git a/t/Patroncards_Lib.t b/t/Patroncards_Lib.t index 88154a6425..3708769087 100755 --- a/t/Patroncards_Lib.t +++ b/t/Patroncards_Lib.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Patroncards::Lib'); diff --git a/t/Patroncards_Patroncard.t b/t/Patroncards_Patroncard.t index 8868350fb1..eb082d30fc 100755 --- a/t/Patroncards_Patroncard.t +++ b/t/Patroncards_Patroncard.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Patroncards::Patroncard'); diff --git a/t/Patroncards_Profile.t b/t/Patroncards_Profile.t index 78cb6cfa7c..b886dd5244 100755 --- a/t/Patroncards_Profile.t +++ b/t/Patroncards_Profile.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Patroncards::Profile'); diff --git a/t/Patroncards_Template.t b/t/Patroncards_Template.t index a781e0c3cc..9b369446a1 100755 --- a/t/Patroncards_Template.t +++ b/t/Patroncards_Template.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Patroncards::Template'); diff --git a/t/RecordProcessor.t b/t/RecordProcessor.t index eef01d42cd..2403e26a21 100755 --- a/t/RecordProcessor.t +++ b/t/RecordProcessor.t @@ -22,6 +22,7 @@ use Modern::Perl; use File::Spec; use MARC::Record; use English qw( -no_match_vars ); +use Test::NoWarnings; use Test::More; BEGIN { diff --git a/t/Ris.t b/t/Ris.t index c11b1f59b5..b2c073cdf1 100755 --- a/t/Ris.t +++ b/t/Ris.t @@ -6,7 +6,8 @@ use Modern::Perl; use t::lib::Mocks; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; BEGIN { use_ok('C4::Ris'); diff --git a/t/SIP/Sip.t b/t/SIP/Sip.t index 1dc7ed1684..36c3d053b3 100755 --- a/t/SIP/Sip.t +++ b/t/SIP/Sip.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 9; +use Test::NoWarnings; +use Test::More tests => 10; use Test::Warn; BEGIN { diff --git a/t/SMS.t b/t/SMS.t index 763251a713..e55c5f1ef7 100755 --- a/t/SMS.t +++ b/t/SMS.t @@ -19,7 +19,8 @@ use Modern::Perl; use t::lib::Mocks; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; BEGIN { use_ok( 'C4::SMS', qw( driver send_sms ) ); diff --git a/t/Scheduler.t b/t/Scheduler.t index 520b6b326f..8bf1bb7f94 100755 --- a/t/Scheduler.t +++ b/t/Scheduler.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; BEGIN { use_ok('C4::Scheduler', qw( get_jobs get_at_jobs get_at_job add_at_job remove_at_job )); diff --git a/t/Scrubber.t b/t/Scrubber.t index e04fd2e0d9..ca02465359 100755 --- a/t/Scrubber.t +++ b/t/Scrubber.t @@ -3,7 +3,8 @@ use Modern::Perl; $| = 1; -use Test::More tests => 31; +use Test::NoWarnings; +use Test::More tests => 32; use Test::Warn; BEGIN { diff --git a/t/Search.t b/t/Search.t index e32fc85595..96d2289f59 100755 --- a/t/Search.t +++ b/t/Search.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use Test::Warn; use t::lib::Mocks; diff --git a/t/Search/History.t b/t/Search/History.t index 0b3715c13c..03affbef6d 100755 --- a/t/Search/History.t +++ b/t/Search/History.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use URI::Escape; use JSON qw( decode_json ); diff --git a/t/Search/buildQuery.t b/t/Search/buildQuery.t index d03b2cf8b0..9b0bfb38e4 100755 --- a/t/Search/buildQuery.t +++ b/t/Search/buildQuery.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 9; +use Test::NoWarnings; +use Test::More tests => 10; use Net::Z3950::ZOOM; use t::lib::Mocks; diff --git a/t/Search_PazPar2.t b/t/Search_PazPar2.t index 62b622d97a..753b095a0c 100755 --- a/t/Search_PazPar2.t +++ b/t/Search_PazPar2.t @@ -5,7 +5,8 @@ use Modern::Perl; -use Test::More tests => 14; +use Test::NoWarnings; +use Test::More tests => 15; use Test::Warn; BEGIN { diff --git a/t/Serials/GetNextSeq.t b/t/Serials/GetNextSeq.t index 63a7f3c73e..070086fe5f 100755 --- a/t/Serials/GetNextSeq.t +++ b/t/Serials/GetNextSeq.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 46; +use Test::NoWarnings; +use Test::More tests => 47; use C4::Serials qw( GetNextSeq ); # TEST CASE 1 - 1 variable, from 1 to 4 diff --git a/t/Serials/ModSerialStatus.t b/t/Serials/ModSerialStatus.t index 480b84f4c1..b101ba5fb7 100755 --- a/t/Serials/ModSerialStatus.t +++ b/t/Serials/ModSerialStatus.t @@ -22,7 +22,8 @@ use Modern::Perl; use Data::Dumper qw/Dumper/; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use C4::Serials; diff --git a/t/SimpleMARC.t b/t/SimpleMARC.t index 597ec8c412..f66d75ff4f 100755 --- a/t/SimpleMARC.t +++ b/t/SimpleMARC.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use_ok("MARC::Field"); use_ok("MARC::Record"); diff --git a/t/SuggestionEngine.t b/t/SuggestionEngine.t index c8c981fa60..511f9df36f 100755 --- a/t/SuggestionEngine.t +++ b/t/SuggestionEngine.t @@ -4,6 +4,7 @@ use strict; use warnings; use File::Spec; +use Test::NoWarnings; use Test::More; BEGIN { diff --git a/t/SuggestionEngine_AuthorityFile.t b/t/SuggestionEngine_AuthorityFile.t index 7790722f3f..ef98d48b36 100755 --- a/t/SuggestionEngine_AuthorityFile.t +++ b/t/SuggestionEngine_AuthorityFile.t @@ -20,7 +20,8 @@ # for every call to SearchAuthorities use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use Koha::SuggestionEngine; diff --git a/t/Template/Utils.t b/t/Template/Utils.t index 0f1a9ed307..ed6c4351ec 100755 --- a/t/Template/Utils.t +++ b/t/Template/Utils.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use utf8; diff --git a/t/Test/Dates.t b/t/Test/Dates.t index 4857e278c5..cf4022e13a 100755 --- a/t/Test/Dates.t +++ b/t/Test/Dates.t @@ -1,5 +1,6 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use t::lib::Dates; use Koha::DateUtils qw( dt_from_string ); diff --git a/t/TmplToken.t b/t/TmplToken.t index a52f3c5e6f..803476a047 100755 --- a/t/TmplToken.t +++ b/t/TmplToken.t @@ -5,7 +5,8 @@ use strict; use warnings; -use Test::More tests => 19; +use Test::NoWarnings; +use Test::More tests => 20; BEGIN { use_ok('C4::TmplToken'); diff --git a/t/Token.t b/t/Token.t index 794bb3d69a..91b8adba87 100755 --- a/t/Token.t +++ b/t/Token.t @@ -20,7 +20,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use Test::Exception; use Time::HiRes qw|usleep|; diff --git a/t/db_dependent/00-strict.t b/t/db_dependent/00-strict.t index 41515a9451..34aa248e65 100755 --- a/t/db_dependent/00-strict.t +++ b/t/db_dependent/00-strict.t @@ -5,6 +5,7 @@ use strict; use warnings; use threads; # used for parallel +use Test::NoWarnings; use Test::More; use Test::Strict; use Parallel::ForkManager; diff --git a/t/db_dependent/Accounts.t b/t/db_dependent/Accounts.t index f749706a6c..ecd0e90d84 100755 --- a/t/db_dependent/Accounts.t +++ b/t/db_dependent/Accounts.t @@ -18,7 +18,8 @@ use Modern::Perl; -use Test::More tests => 27; +use Test::NoWarnings; +use Test::More tests => 28; use Test::MockModule; use Test::Exception; use Test::Warn; diff --git a/t/db_dependent/Acquisition.t b/t/db_dependent/Acquisition.t index 931fc9a991..3ad2c7abbc 100755 --- a/t/db_dependent/Acquisition.t +++ b/t/db_dependent/Acquisition.t @@ -19,7 +19,8 @@ use Modern::Perl; use POSIX qw(strftime); -use Test::More tests => 73; +use Test::NoWarnings; +use Test::More tests => 74; use t::lib::Mocks; use Koha::Database; use Koha::DateUtils qw(dt_from_string output_pref); diff --git a/t/db_dependent/Acquisition/CancelReceipt.t b/t/db_dependent/Acquisition/CancelReceipt.t index 6e25ed8edb..52a713d1fa 100755 --- a/t/db_dependent/Acquisition/CancelReceipt.t +++ b/t/db_dependent/Acquisition/CancelReceipt.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use t::lib::TestBuilder; use C4::Context; diff --git a/t/db_dependent/Acquisition/FillWithDefaultValues.t b/t/db_dependent/Acquisition/FillWithDefaultValues.t index 96969e0c7f..b76bf61d3b 100755 --- a/t/db_dependent/Acquisition/FillWithDefaultValues.t +++ b/t/db_dependent/Acquisition/FillWithDefaultValues.t @@ -1,5 +1,6 @@ use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use Test::MockModule; use MARC::Record; diff --git a/t/db_dependent/Acquisition/GetBasketAsCSV.t b/t/db_dependent/Acquisition/GetBasketAsCSV.t index 37b01e79e6..53f1f1ce82 100755 --- a/t/db_dependent/Acquisition/GetBasketAsCSV.t +++ b/t/db_dependent/Acquisition/GetBasketAsCSV.t @@ -4,7 +4,8 @@ use Modern::Perl; use CGI; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use C4::Acquisition qw( NewBasket GetBasket GetBasketAsCSV ); use C4::Biblio qw( AddBiblio ); diff --git a/t/db_dependent/Acquisition/GetBasketGroupAsCSV.t b/t/db_dependent/Acquisition/GetBasketGroupAsCSV.t index ce9a90a26b..e89274bf87 100755 --- a/t/db_dependent/Acquisition/GetBasketGroupAsCSV.t +++ b/t/db_dependent/Acquisition/GetBasketGroupAsCSV.t @@ -4,7 +4,8 @@ use Modern::Perl; use CGI; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use C4::Acquisition qw( NewBasket NewBasketgroup GetBasketGroupAsCSV ); use C4::Biblio qw( AddBiblio ); diff --git a/t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t b/t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t index b978cd76ce..738b514643 100755 --- a/t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t +++ b/t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 43; +use Test::NoWarnings; +use Test::More tests => 44; use Data::Dumper; use C4::Acquisition qw( NewBasket GetBasket GetBasketsInfosByBookseller ReopenBasket AddInvoice GetInvoice ModReceiveOrder ); diff --git a/t/db_dependent/Acquisition/GetOrdersByBiblionumber.t b/t/db_dependent/Acquisition/GetOrdersByBiblionumber.t index b16c307d27..c81660d337 100755 --- a/t/db_dependent/Acquisition/GetOrdersByBiblionumber.t +++ b/t/db_dependent/Acquisition/GetOrdersByBiblionumber.t @@ -2,6 +2,7 @@ use Modern::Perl; +use Test::NoWarnings; use Test::More; use C4::Acquisition qw( NewBasket GetOrders GetOrdersByBiblionumber GetOrder ); use C4::Biblio qw( AddBiblio ); diff --git a/t/db_dependent/Acquisition/Invoices.t b/t/db_dependent/Acquisition/Invoices.t index 337bd94883..c9d5465bee 100755 --- a/t/db_dependent/Acquisition/Invoices.t +++ b/t/db_dependent/Acquisition/Invoices.t @@ -8,7 +8,8 @@ use Koha::Acquisition::Booksellers; use Koha::Acquisition::Orders; use Koha::Database; -use Test::More tests => 29; +use Test::NoWarnings; +use Test::More tests => 30; BEGIN { use_ok('C4::Acquisition', qw( NewBasket GetBasket AddInvoice GetInvoice ModReceiveOrder GetInvoiceDetails GetInvoices ModInvoice CloseInvoice ReopenInvoice MergeInvoices DelInvoice )); diff --git a/t/db_dependent/Acquisition/NewOrder.t b/t/db_dependent/Acquisition/NewOrder.t index d853cb1f91..59b5c75e7d 100755 --- a/t/db_dependent/Acquisition/NewOrder.t +++ b/t/db_dependent/Acquisition/NewOrder.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use C4::Acquisition qw( NewBasket ); use C4::Biblio qw( AddBiblio ); use C4::Budgets qw( AddBudget GetBudget ); diff --git a/t/db_dependent/Acquisition/OrderFromSubscription.t b/t/db_dependent/Acquisition/OrderFromSubscription.t index d9db71c180..c5bd834120 100755 --- a/t/db_dependent/Acquisition/OrderFromSubscription.t +++ b/t/db_dependent/Acquisition/OrderFromSubscription.t @@ -1,6 +1,7 @@ use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use t::lib::TestBuilder; diff --git a/t/db_dependent/Acquisition/OrderUsers.t b/t/db_dependent/Acquisition/OrderUsers.t index 540be8460d..97952b308e 100755 --- a/t/db_dependent/Acquisition/OrderUsers.t +++ b/t/db_dependent/Acquisition/OrderUsers.t @@ -1,5 +1,6 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use C4::Acquisition qw( NewBasket AddInvoice ModOrder ModOrderUsers GetOrder GetOrderUsers ModReceiveOrder ); use C4::Biblio qw( AddBiblio ); diff --git a/t/db_dependent/Acquisition/StandingOrders.t b/t/db_dependent/Acquisition/StandingOrders.t index ecf7cd1e5c..4854449fc1 100755 --- a/t/db_dependent/Acquisition/StandingOrders.t +++ b/t/db_dependent/Acquisition/StandingOrders.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 14; +use Test::NoWarnings; +use Test::More tests => 15; use C4::Context; use C4::Acquisition qw( NewBasket GetBasket SearchOrders AddInvoice ModReceiveOrder CancelReceipt ); use C4::Biblio qw( AddBiblio ); diff --git a/t/db_dependent/Acquisition/TransferOrder.t b/t/db_dependent/Acquisition/TransferOrder.t index 1cf443dd6d..73711e9dd8 100755 --- a/t/db_dependent/Acquisition/TransferOrder.t +++ b/t/db_dependent/Acquisition/TransferOrder.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 14; +use Test::NoWarnings; +use Test::More tests => 15; use C4::Context; use C4::Acquisition qw( NewBasket GetOrders GetOrder TransferOrder SearchOrders ModReceiveOrder CancelReceipt ); use C4::Biblio; diff --git a/t/db_dependent/Acquisition/close_reopen_basket.t b/t/db_dependent/Acquisition/close_reopen_basket.t index 47aa681fac..e870f74d42 100755 --- a/t/db_dependent/Acquisition/close_reopen_basket.t +++ b/t/db_dependent/Acquisition/close_reopen_basket.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 14; +use Test::NoWarnings; +use Test::More tests => 15; use C4::Acquisition qw( NewBasket GetBiblioCountByBasketno GetOrders GetOrder ReopenBasket ); use C4::Biblio qw( AddBiblio ); use C4::Budgets qw( AddBudget GetBudget ); diff --git a/t/db_dependent/Acquisition/populate_order_with_prices.t b/t/db_dependent/Acquisition/populate_order_with_prices.t index 3bf9fa32f4..8cfb02be48 100755 --- a/t/db_dependent/Acquisition/populate_order_with_prices.t +++ b/t/db_dependent/Acquisition/populate_order_with_prices.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 44; +use Test::NoWarnings; +use Test::More tests => 45; use C4::Context; use Koha::Database; use Koha::Acquisition::Bookseller; diff --git a/t/db_dependent/Amazon.t b/t/db_dependent/Amazon.t index 871808415d..69bb1693f3 100755 --- a/t/db_dependent/Amazon.t +++ b/t/db_dependent/Amazon.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use t::lib::Mocks; use C4::Context; diff --git a/t/db_dependent/ArticleRequests.t b/t/db_dependent/ArticleRequests.t index 289015b431..83e08b5118 100755 --- a/t/db_dependent/ArticleRequests.t +++ b/t/db_dependent/ArticleRequests.t @@ -19,7 +19,8 @@ use Modern::Perl; use POSIX qw(strftime); -use Test::More tests => 36; +use Test::NoWarnings; +use Test::More tests => 37; use Test::MockModule; use t::lib::TestBuilder; diff --git a/t/db_dependent/AudioAlerts.t b/t/db_dependent/AudioAlerts.t index 5b616e5008..1d5a239df5 100755 --- a/t/db_dependent/AudioAlerts.t +++ b/t/db_dependent/AudioAlerts.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 33; +use Test::NoWarnings; +use Test::More tests => 34; BEGIN { use_ok('Koha::AudioAlert'); diff --git a/t/db_dependent/Auth/haspermission.t b/t/db_dependent/Auth/haspermission.t index 6cbb044561..be696b37f8 100755 --- a/t/db_dependent/Auth/haspermission.t +++ b/t/db_dependent/Auth/haspermission.t @@ -20,7 +20,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Exception; use Koha::Database; diff --git a/t/db_dependent/AuthUtils.t b/t/db_dependent/AuthUtils.t index fa5bc76038..afb630ec98 100755 --- a/t/db_dependent/AuthUtils.t +++ b/t/db_dependent/AuthUtils.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Exception; use Test::MockModule; use t::lib::Mocks; diff --git a/t/db_dependent/Auth_with_cas.t b/t/db_dependent/Auth_with_cas.t index be33224325..4405ec9205 100755 --- a/t/db_dependent/Auth_with_cas.t +++ b/t/db_dependent/Auth_with_cas.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::MockModule; use Test::MockObject; diff --git a/t/db_dependent/Auth_with_ldap.t b/t/db_dependent/Auth_with_ldap.t index 6c35aa5e5f..8f58def1d1 100755 --- a/t/db_dependent/Auth_with_ldap.t +++ b/t/db_dependent/Auth_with_ldap.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use Test::MockObject; use Test::Warn; diff --git a/t/db_dependent/AuthoritiesMarc.t b/t/db_dependent/AuthoritiesMarc.t index 55435d281b..81b8a4eeb5 100755 --- a/t/db_dependent/AuthoritiesMarc.t +++ b/t/db_dependent/AuthoritiesMarc.t @@ -5,7 +5,8 @@ use Modern::Perl; -use Test::More tests => 13; +use Test::NoWarnings; +use Test::More tests => 14; use Test::MockModule; use Test::Warn; use MARC::Field; diff --git a/t/db_dependent/AuthoritiesMarc/MARC21.t b/t/db_dependent/AuthoritiesMarc/MARC21.t index d8ccde0d3f..390c555f92 100755 --- a/t/db_dependent/AuthoritiesMarc/MARC21.t +++ b/t/db_dependent/AuthoritiesMarc/MARC21.t @@ -5,7 +5,8 @@ use strict; use warnings; use Test::MockModule; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use MARC::Field; use MARC::Record; diff --git a/t/db_dependent/AuthoritiesMarc_GetTagsLabels.t b/t/db_dependent/AuthoritiesMarc_GetTagsLabels.t index f5d98e3542..6175b5e530 100755 --- a/t/db_dependent/AuthoritiesMarc_GetTagsLabels.t +++ b/t/db_dependent/AuthoritiesMarc_GetTagsLabels.t @@ -20,7 +20,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::TestBuilder; diff --git a/t/db_dependent/Authority/Merge.t b/t/db_dependent/Authority/Merge.t index 2336cf999c..a0c8493101 100755 --- a/t/db_dependent/Authority/Merge.t +++ b/t/db_dependent/Authority/Merge.t @@ -4,7 +4,8 @@ use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use Getopt::Long; use MARC::Record; diff --git a/t/db_dependent/Authority/MergeRequests.t b/t/db_dependent/Authority/MergeRequests.t index bba791992a..273c5ff5e8 100755 --- a/t/db_dependent/Authority/MergeRequests.t +++ b/t/db_dependent/Authority/MergeRequests.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Authority::MergeRequest; use Koha::Authority::MergeRequests; diff --git a/t/db_dependent/Authority/Subfields.t b/t/db_dependent/Authority/Subfields.t index dc5e53a1c3..4b67f123dc 100755 --- a/t/db_dependent/Authority/Subfields.t +++ b/t/db_dependent/Authority/Subfields.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::TestBuilder; diff --git a/t/db_dependent/Authority/Tags.t b/t/db_dependent/Authority/Tags.t index 4111f7ab8a..2c37e45e9b 100755 --- a/t/db_dependent/Authority/Tags.t +++ b/t/db_dependent/Authority/Tags.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::TestBuilder; diff --git a/t/db_dependent/Barcodes.t b/t/db_dependent/Barcodes.t index 0232a4a9c9..95dc6904e4 100755 --- a/t/db_dependent/Barcodes.t +++ b/t/db_dependent/Barcodes.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 76; +use Test::NoWarnings; +use Test::More tests => 77; use Test::Warn; use Test::MockModule; use t::lib::TestBuilder; diff --git a/t/db_dependent/Barcodes_ValueBuilder.t b/t/db_dependent/Barcodes_ValueBuilder.t index 84fcce1983..da6066a866 100755 --- a/t/db_dependent/Barcodes_ValueBuilder.t +++ b/t/db_dependent/Barcodes_ValueBuilder.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 9; +use Test::NoWarnings; +use Test::More tests => 10; use Test::MockModule; use t::lib::TestBuilder; diff --git a/t/db_dependent/Biblio/Isbd.t b/t/db_dependent/Biblio/Isbd.t index dc992b284a..91ae5a310e 100755 --- a/t/db_dependent/Biblio/Isbd.t +++ b/t/db_dependent/Biblio/Isbd.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::MockModule; use MARC::Record; use t::lib::Mocks qw( mock_preference ); diff --git a/t/db_dependent/Biblio/MarcOverlayRules.t b/t/db_dependent/Biblio/MarcOverlayRules.t index c97815494d..f488bbab45 100755 --- a/t/db_dependent/Biblio/MarcOverlayRules.t +++ b/t/db_dependent/Biblio/MarcOverlayRules.t @@ -26,7 +26,8 @@ use C4::Biblio qw( AddBiblio ModBiblio DelBiblio ); use Koha::Database; use Koha::Biblios; -use Test::More tests => 24; +use Test::NoWarnings; +use Test::More tests => 25; use Test::MockModule; use Koha::MarcOverlayRules; diff --git a/t/db_dependent/Biblio/ModBiblioMarc.t b/t/db_dependent/Biblio/ModBiblioMarc.t index a1fb6cf596..b16ef706eb 100755 --- a/t/db_dependent/Biblio/ModBiblioMarc.t +++ b/t/db_dependent/Biblio/ModBiblioMarc.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use t::lib::Mocks; use t::lib::TestBuilder; use MARC::Record; diff --git a/t/db_dependent/Biblio/TransformHtmlToMarc.t b/t/db_dependent/Biblio/TransformHtmlToMarc.t index 0d54748031..86803683e2 100755 --- a/t/db_dependent/Biblio/TransformHtmlToMarc.t +++ b/t/db_dependent/Biblio/TransformHtmlToMarc.t @@ -3,7 +3,8 @@ use Modern::Perl; use CGI; use Encode qw( encode ); -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Koha::Caches; use Koha::Database; diff --git a/t/db_dependent/Biblio/TransformKohaToMarc.t b/t/db_dependent/Biblio/TransformKohaToMarc.t index d2efaa6aa9..ff76e2329f 100755 --- a/t/db_dependent/Biblio/TransformKohaToMarc.t +++ b/t/db_dependent/Biblio/TransformKohaToMarc.t @@ -1,5 +1,6 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use MARC::Record; use t::lib::Mocks; diff --git a/t/db_dependent/Biblio/TransformMarcToKoha.t b/t/db_dependent/Biblio/TransformMarcToKoha.t index ab16f52d30..2961d15a88 100755 --- a/t/db_dependent/Biblio/TransformMarcToKoha.t +++ b/t/db_dependent/Biblio/TransformMarcToKoha.t @@ -19,7 +19,8 @@ # with Koha; if not, see . use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use MARC::Record; use t::lib::Mocks; diff --git a/t/db_dependent/Biblio_holdsqueue.t b/t/db_dependent/Biblio_holdsqueue.t index 4c687a69ba..189c01a254 100755 --- a/t/db_dependent/Biblio_holdsqueue.t +++ b/t/db_dependent/Biblio_holdsqueue.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use t::lib::Mocks; diff --git a/t/db_dependent/Breeding.t b/t/db_dependent/Breeding.t index c88763076b..4a8b2c31f4 100755 --- a/t/db_dependent/Breeding.t +++ b/t/db_dependent/Breeding.t @@ -24,7 +24,8 @@ use Modern::Perl; use File::Temp qw/tempfile/; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Warn; use t::lib::Mocks qw( mock_preference ); diff --git a/t/db_dependent/Breeding_Auth.t b/t/db_dependent/Breeding_Auth.t index b019bb127d..78ea253615 100755 --- a/t/db_dependent/Breeding_Auth.t +++ b/t/db_dependent/Breeding_Auth.t @@ -22,7 +22,8 @@ use Modern::Perl; use utf8; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use Test::MockObject; use Test::Warn; diff --git a/t/db_dependent/Budgets/CloneBudgetHierarchy.t b/t/db_dependent/Budgets/CloneBudgetHierarchy.t index be221dcb00..f50b721501 100755 --- a/t/db_dependent/Budgets/CloneBudgetHierarchy.t +++ b/t/db_dependent/Budgets/CloneBudgetHierarchy.t @@ -2,6 +2,7 @@ use Modern::Perl; +use Test::NoWarnings; use Test::More; use Koha::Database; diff --git a/t/db_dependent/Cache.t b/t/db_dependent/Cache.t index e47393f22c..9764a3eb7c 100755 --- a/t/db_dependent/Cache.t +++ b/t/db_dependent/Cache.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 44; +use Test::NoWarnings; +use Test::More tests => 45; use Test::Warn; my $destructorcount = 0; diff --git a/t/db_dependent/Calendar.t b/t/db_dependent/Calendar.t index 40b99bc795..368cd9e871 100755 --- a/t/db_dependent/Calendar.t +++ b/t/db_dependent/Calendar.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Time::Fake; use t::lib::Mocks; diff --git a/t/db_dependent/Charset.t b/t/db_dependent/Charset.t index 420b38641e..8853dc1a50 100755 --- a/t/db_dependent/Charset.t +++ b/t/db_dependent/Charset.t @@ -1,5 +1,6 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use MARC::Record; use C4::Biblio qw( GetMarcFromKohaField AddBiblio ); diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index ce38277610..9c4a3cca73 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -18,7 +18,8 @@ use Modern::Perl; use utf8; -use Test::More tests => 75; +use Test::NoWarnings; +use Test::More tests => 76; use Test::Exception; use Test::MockModule; use Test::Deep qw( cmp_deeply ); diff --git a/t/db_dependent/Circulation/Branch.t b/t/db_dependent/Circulation/Branch.t index 80a8cc6142..c849a8d745 100755 --- a/t/db_dependent/Circulation/Branch.t +++ b/t/db_dependent/Circulation/Branch.t @@ -25,7 +25,8 @@ use Koha::CirculationRules; use Koha::Patrons; -use Test::More tests => 18; +use Test::NoWarnings; +use Test::More tests => 19; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/Circulation/CalcDateDue.t b/t/db_dependent/Circulation/CalcDateDue.t index f4c232b9dd..c6c7d74474 100755 --- a/t/db_dependent/Circulation/CalcDateDue.t +++ b/t/db_dependent/Circulation/CalcDateDue.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 23; +use Test::NoWarnings; +use Test::More tests => 24; use Test::MockModule; use DBI; use DateTime; diff --git a/t/db_dependent/Circulation/CalcFine.t b/t/db_dependent/Circulation/CalcFine.t index d372d17339..f437815b1e 100755 --- a/t/db_dependent/Circulation/CalcFine.t +++ b/t/db_dependent/Circulation/CalcFine.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use Test::Warn; use C4::Context; diff --git a/t/db_dependent/Circulation/CheckIfIssuedToPatron.t b/t/db_dependent/Circulation/CheckIfIssuedToPatron.t index 9add304139..622bbfd929 100755 --- a/t/db_dependent/Circulation/CheckIfIssuedToPatron.t +++ b/t/db_dependent/Circulation/CheckIfIssuedToPatron.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 21; +use Test::NoWarnings; +use Test::More tests => 22; use Test::MockModule; use t::lib::TestBuilder; diff --git a/t/db_dependent/Circulation/CheckValidBarcode.t b/t/db_dependent/Circulation/CheckValidBarcode.t index 0e159b60ac..8b200f30cb 100755 --- a/t/db_dependent/Circulation/CheckValidBarcode.t +++ b/t/db_dependent/Circulation/CheckValidBarcode.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; use C4::Circulation qw( CheckValidBarcode ); use C4::Biblio qw( AddBiblio ); diff --git a/t/db_dependent/Circulation/GetHardDueDate.t b/t/db_dependent/Circulation/GetHardDueDate.t index 227bde390c..888857e998 100755 --- a/t/db_dependent/Circulation/GetHardDueDate.t +++ b/t/db_dependent/Circulation/GetHardDueDate.t @@ -10,7 +10,8 @@ use Koha::Library; use t::lib::TestBuilder; -use Test::More tests => 9; +use Test::NoWarnings; +use Test::More tests => 10; BEGIN { use_ok('C4::Circulation', qw( GetHardDueDate GetLoanLength )); diff --git a/t/db_dependent/Circulation/GetPendingOnSiteCheckouts.t b/t/db_dependent/Circulation/GetPendingOnSiteCheckouts.t index 01d60d9790..77047914a4 100755 --- a/t/db_dependent/Circulation/GetPendingOnSiteCheckouts.t +++ b/t/db_dependent/Circulation/GetPendingOnSiteCheckouts.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use t::lib::TestBuilder; diff --git a/t/db_dependent/Circulation/GetTopIssues.t b/t/db_dependent/Circulation/GetTopIssues.t index 3130faeff0..d5c1d5a3fb 100755 --- a/t/db_dependent/Circulation/GetTopIssues.t +++ b/t/db_dependent/Circulation/GetTopIssues.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 14; +use Test::NoWarnings; +use Test::More tests => 15; use Test::MockModule; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/Circulation/IsItemIssued.t b/t/db_dependent/Circulation/IsItemIssued.t index 5cfae54e70..3b11b7e56d 100755 --- a/t/db_dependent/Circulation/IsItemIssued.t +++ b/t/db_dependent/Circulation/IsItemIssued.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::MockModule; use C4::Circulation qw( IsItemIssued AddIssue AddReturn ); diff --git a/t/db_dependent/Circulation/MarkIssueReturned.t b/t/db_dependent/Circulation/MarkIssueReturned.t index 7f76a40a61..131ac5fe76 100755 --- a/t/db_dependent/Circulation/MarkIssueReturned.t +++ b/t/db_dependent/Circulation/MarkIssueReturned.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Exception; use t::lib::Mocks; diff --git a/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t b/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t index f3d51fc91f..bd54fd7df0 100755 --- a/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t +++ b/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Circulation/OfflineCirculation.t b/t/db_dependent/Circulation/OfflineCirculation.t index 9aec60fb19..4cfc08eff1 100755 --- a/t/db_dependent/Circulation/OfflineCirculation.t +++ b/t/db_dependent/Circulation/OfflineCirculation.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Circulation/OfflineOperation.t b/t/db_dependent/Circulation/OfflineOperation.t index 867ce700a1..77dd5e03c7 100755 --- a/t/db_dependent/Circulation/OfflineOperation.t +++ b/t/db_dependent/Circulation/OfflineOperation.t @@ -7,7 +7,8 @@ use Koha::Database; use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Library; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; BEGIN { use_ok('C4::Circulation', qw( AddOfflineOperation GetOfflineOperation GetOfflineOperations DeleteOfflineOperation )); diff --git a/t/db_dependent/Circulation/ReturnClaims.t b/t/db_dependent/Circulation/ReturnClaims.t index e1b4409f6e..ad34bbbd7c 100755 --- a/t/db_dependent/Circulation/ReturnClaims.t +++ b/t/db_dependent/Circulation/ReturnClaims.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Circulation/Returns.t b/t/db_dependent/Circulation/Returns.t index e11fe4d001..2c3ffe3117 100755 --- a/t/db_dependent/Circulation/Returns.t +++ b/t/db_dependent/Circulation/Returns.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Circulation/StoreLastBorrower.t b/t/db_dependent/Circulation/StoreLastBorrower.t index c4c7f37a22..d0d057b39a 100755 --- a/t/db_dependent/Circulation/StoreLastBorrower.t +++ b/t/db_dependent/Circulation/StoreLastBorrower.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use C4::Circulation qw( AddReturn ); use C4::Context; diff --git a/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t b/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t index e0aafb3868..003a41fe08 100755 --- a/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t +++ b/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t @@ -15,7 +15,8 @@ # with Koha; if not, see . use Modern::Perl; -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; use C4::Context; use C4::Circulation qw( TooMany AddIssue CanBookBeIssued ); diff --git a/t/db_dependent/Circulation/TooMany.t b/t/db_dependent/Circulation/TooMany.t index b760cb4136..201aea0d01 100755 --- a/t/db_dependent/Circulation/TooMany.t +++ b/t/db_dependent/Circulation/TooMany.t @@ -15,7 +15,8 @@ # with Koha; if not, see . use Modern::Perl; -use Test::More tests => 11; +use Test::NoWarnings; +use Test::More tests => 12; use C4::Context; use C4::Members; diff --git a/t/db_dependent/Circulation/_CalculateAndUpdateFine.t b/t/db_dependent/Circulation/_CalculateAndUpdateFine.t index 701e3bfb56..6b74a923a2 100755 --- a/t/db_dependent/Circulation/_CalculateAndUpdateFine.t +++ b/t/db_dependent/Circulation/_CalculateAndUpdateFine.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::DateUtils qw( dt_from_string ); diff --git a/t/db_dependent/Circulation/dateexpiry.t b/t/db_dependent/Circulation/dateexpiry.t index f992219687..3d8fd99524 100755 --- a/t/db_dependent/Circulation/dateexpiry.t +++ b/t/db_dependent/Circulation/dateexpiry.t @@ -19,7 +19,8 @@ use Modern::Perl; use DateTime; use Time::HiRes qw/gettimeofday time/; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use C4::Members; use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Database; diff --git a/t/db_dependent/Circulation/issue.t b/t/db_dependent/Circulation/issue.t index 8b91a27a88..465510c8aa 100755 --- a/t/db_dependent/Circulation/issue.t +++ b/t/db_dependent/Circulation/issue.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 67; +use Test::NoWarnings; +use Test::More tests => 68; use DateTime::Duration; use t::lib::Mocks; diff --git a/t/db_dependent/Circulation/maxsuspensiondays.t b/t/db_dependent/Circulation/maxsuspensiondays.t index 614a32303a..f2d164661e 100755 --- a/t/db_dependent/Circulation/maxsuspensiondays.t +++ b/t/db_dependent/Circulation/maxsuspensiondays.t @@ -1,5 +1,6 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use MARC::Record; use MARC::Field; diff --git a/t/db_dependent/Circulation/transferbook.t b/t/db_dependent/Circulation/transferbook.t index 78ca0b34c8..81bdb3e090 100755 --- a/t/db_dependent/Circulation/transferbook.t +++ b/t/db_dependent/Circulation/transferbook.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Circulation/transfers.t b/t/db_dependent/Circulation/transfers.t index ca6c37daa4..335c652120 100755 --- a/t/db_dependent/Circulation/transfers.t +++ b/t/db_dependent/Circulation/transfers.t @@ -27,7 +27,8 @@ use Koha::Item::Transfers; use t::lib::TestBuilder; -use Test::More tests => 19; +use Test::NoWarnings; +use Test::More tests => 20; use Test::Deep; BEGIN { diff --git a/t/db_dependent/ClassSources.t b/t/db_dependent/ClassSources.t index 98d8f2b988..d05a586f64 100755 --- a/t/db_dependent/ClassSources.t +++ b/t/db_dependent/ClassSources.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use t::lib::TestBuilder; use Koha::ClassSortRules; diff --git a/t/db_dependent/Clubs.t b/t/db_dependent/Clubs.t index 853c988f8a..bc1b84d527 100755 --- a/t/db_dependent/Clubs.t +++ b/t/db_dependent/Clubs.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 38; +use Test::NoWarnings; +use Test::More tests => 39; use Test::Warn; use C4::Context; diff --git a/t/db_dependent/Context.t b/t/db_dependent/Context.t index 67587b4798..360f8582ac 100755 --- a/t/db_dependent/Context.t +++ b/t/db_dependent/Context.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::MockModule; use C4::Context; diff --git a/t/db_dependent/Contract.t b/t/db_dependent/Contract.t index e1af15b19c..234b598450 100755 --- a/t/db_dependent/Contract.t +++ b/t/db_dependent/Contract.t @@ -26,7 +26,8 @@ use Koha::Acquisition::Booksellers; use DateTime::Duration; -use Test::More tests => 43; +use Test::NoWarnings; +use Test::More tests => 44; BEGIN { use_ok('C4::Contract', qw( GetContracts GetContract AddContract ModContract DelContract )); diff --git a/t/db_dependent/CourseReserves.t b/t/db_dependent/CourseReserves.t index 06af1b5a50..9c4e85401c 100755 --- a/t/db_dependent/CourseReserves.t +++ b/t/db_dependent/CourseReserves.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 26; +use Test::NoWarnings; +use Test::More tests => 27; use Koha::Database; use t::lib::TestBuilder; diff --git a/t/db_dependent/CourseReserves/CourseItems.t b/t/db_dependent/CourseReserves/CourseItems.t index 6e419cdb25..81249eb2dc 100755 --- a/t/db_dependent/CourseReserves/CourseItems.t +++ b/t/db_dependent/CourseReserves/CourseItems.t @@ -23,7 +23,8 @@ use C4::CourseReserves qw( ModCourse ModCourseItem ModCourseReserve GetCourse Ge use C4::Context; use Koha::Items; -use Test::More tests => 36; +use Test::NoWarnings; +use Test::More tests => 37; BEGIN { require_ok('C4::CourseReserves'); diff --git a/t/db_dependent/Creators/Lib.t b/t/db_dependent/Creators/Lib.t index 5b314bcd68..0106fb59c9 100755 --- a/t/db_dependent/Creators/Lib.t +++ b/t/db_dependent/Creators/Lib.t @@ -18,7 +18,8 @@ use Modern::Perl; use Graphics::Magick; -use Test::More tests => 653; +use Test::NoWarnings; +use Test::More tests => 654; use Test::MockModule; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/DecreaseLoanHighHolds.t b/t/db_dependent/DecreaseLoanHighHolds.t index 2d42d28b9b..0472928250 100755 --- a/t/db_dependent/DecreaseLoanHighHolds.t +++ b/t/db_dependent/DecreaseLoanHighHolds.t @@ -30,7 +30,8 @@ use Koha::CirculationRules; use t::lib::TestBuilder; use t::lib::Mocks; -use Test::More tests => 26; +use Test::NoWarnings; +use Test::More tests => 27; my $dbh = C4::Context->dbh; my $schema = Koha::Database->new()->schema(); diff --git a/t/db_dependent/Exporter/Record.t b/t/db_dependent/Exporter/Record.t index 68fa733f7d..596560064b 100755 --- a/t/db_dependent/Exporter/Record.t +++ b/t/db_dependent/Exporter/Record.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::Warn; use t::lib::TestBuilder; diff --git a/t/db_dependent/Filter_MARC_ViewPolicy.t b/t/db_dependent/Filter_MARC_ViewPolicy.t index 1b03f807ac..cf6d427898 100755 --- a/t/db_dependent/Filter_MARC_ViewPolicy.t +++ b/t/db_dependent/Filter_MARC_ViewPolicy.t @@ -23,7 +23,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use List::MoreUtils qw/any/; use MARC::Record; diff --git a/t/db_dependent/Fines.t b/t/db_dependent/Fines.t index b604a3374a..d8df49b98f 100755 --- a/t/db_dependent/Fines.t +++ b/t/db_dependent/Fines.t @@ -7,7 +7,8 @@ use C4::Overdues qw( CalcFine ); use Koha::Database; use Koha::DateUtils qw( dt_from_string ); -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; my $schema = Koha::Database->new->schema; $schema->storage->txn_begin; diff --git a/t/db_dependent/FrameworkPlugin.t b/t/db_dependent/FrameworkPlugin.t index 731f97df6d..e734b684e0 100755 --- a/t/db_dependent/FrameworkPlugin.t +++ b/t/db_dependent/FrameworkPlugin.t @@ -3,7 +3,8 @@ use Modern::Perl; use CGI; use File::Temp qw/tempfile/; use Getopt::Long; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Heading.t b/t/db_dependent/Heading.t index 80ce96b842..31359cb872 100755 --- a/t/db_dependent/Heading.t +++ b/t/db_dependent/Heading.t @@ -18,7 +18,8 @@ use strict; use warnings; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use t::lib::Mocks; use Test::MockModule; diff --git a/t/db_dependent/Heading_MARC21.t b/t/db_dependent/Heading_MARC21.t index 9f94cf2234..8b01007196 100755 --- a/t/db_dependent/Heading_MARC21.t +++ b/t/db_dependent/Heading_MARC21.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; use C4::Context; BEGIN { diff --git a/t/db_dependent/Hold.t b/t/db_dependent/Hold.t index 15c61a31fa..2a5cb5bc51 100755 --- a/t/db_dependent/Hold.t +++ b/t/db_dependent/Hold.t @@ -29,7 +29,8 @@ use Koha::Item; use Koha::DateUtils qw( dt_from_string ); use t::lib::TestBuilder; -use Test::More tests => 35; +use Test::NoWarnings; +use Test::More tests => 36; use Test::Exception; use Test::Warn; diff --git a/t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t b/t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t index 26486b156a..5617e38b93 100755 --- a/t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t +++ b/t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t @@ -9,7 +9,8 @@ use Koha::Items; use Koha::Cache::Memory::Lite; use Koha::CirculationRules; -use Test::More tests => 13; +use Test::NoWarnings; +use Test::More tests => 14; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Holds/ExpireReservesAutoFill.t b/t/db_dependent/Holds/ExpireReservesAutoFill.t index 31d595a421..ba870a770c 100755 --- a/t/db_dependent/Holds/ExpireReservesAutoFill.t +++ b/t/db_dependent/Holds/ExpireReservesAutoFill.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/Holds/HoldFulfillmentPolicy.t b/t/db_dependent/Holds/HoldFulfillmentPolicy.t index 5fadfb0cfe..5947d055cc 100755 --- a/t/db_dependent/Holds/HoldFulfillmentPolicy.t +++ b/t/db_dependent/Holds/HoldFulfillmentPolicy.t @@ -5,7 +5,8 @@ use Modern::Perl; use C4::Context; use Koha::CirculationRules; -use Test::More tests => 11; +use Test::NoWarnings; +use Test::More tests => 12; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Holds/HoldItemtypeLimit.t b/t/db_dependent/Holds/HoldItemtypeLimit.t index 2b5bdc141a..bd6c03befe 100755 --- a/t/db_dependent/Holds/HoldItemtypeLimit.t +++ b/t/db_dependent/Holds/HoldItemtypeLimit.t @@ -5,7 +5,8 @@ use Modern::Perl; use C4::Context; use Koha::CirculationRules; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use t::lib::TestBuilder; diff --git a/t/db_dependent/Holds/LocalHoldsPriority.t b/t/db_dependent/Holds/LocalHoldsPriority.t index 7638130e20..a7100c51a2 100755 --- a/t/db_dependent/Holds/LocalHoldsPriority.t +++ b/t/db_dependent/Holds/LocalHoldsPriority.t @@ -5,7 +5,8 @@ use Modern::Perl; use t::lib::Mocks; use C4::Context; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use MARC::Record; use Koha::Patrons; diff --git a/t/db_dependent/Holds/RevertWaitingStatus.t b/t/db_dependent/Holds/RevertWaitingStatus.t index 069c7537c1..9d3eb4bda6 100755 --- a/t/db_dependent/Holds/RevertWaitingStatus.t +++ b/t/db_dependent/Holds/RevertWaitingStatus.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use MARC::Record; use Koha::Libraries; diff --git a/t/db_dependent/Holds/WaitingReserves.t b/t/db_dependent/Holds/WaitingReserves.t index b39ee11ce1..a504a42784 100755 --- a/t/db_dependent/Holds/WaitingReserves.t +++ b/t/db_dependent/Holds/WaitingReserves.t @@ -8,7 +8,8 @@ use Koha::DateUtils qw( dt_from_string ); use t::lib::Mocks; use t::lib::TestBuilder; -use Test::More tests => 13; +use Test::NoWarnings; +use Test::More tests => 14; use_ok('C4::Reserves', qw( ModReserve ModReserveAffect )); diff --git a/t/db_dependent/HoldsQueue.t b/t/db_dependent/HoldsQueue.t index 11bcad4156..d0335b52c9 100755 --- a/t/db_dependent/HoldsQueue.t +++ b/t/db_dependent/HoldsQueue.t @@ -8,7 +8,8 @@ use Modern::Perl; -use Test::More tests => 64; +use Test::NoWarnings; +use Test::More tests => 65; use Data::Dumper; use C4::Calendar qw( new insert_single_holiday ); diff --git a/t/db_dependent/Holidays.t b/t/db_dependent/Holidays.t index db169e8e2a..765881188c 100755 --- a/t/db_dependent/Holidays.t +++ b/t/db_dependent/Holidays.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 14; +use Test::NoWarnings; +use Test::More tests => 15; use Test::Exception; use DateTime; diff --git a/t/db_dependent/ILSDI_Services.t b/t/db_dependent/ILSDI_Services.t index df7e65a374..aaf0c8fddd 100755 --- a/t/db_dependent/ILSDI_Services.t +++ b/t/db_dependent/ILSDI_Services.t @@ -19,7 +19,8 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Test::More tests => 14; +use Test::NoWarnings; +use Test::More tests => 15; use Test::MockModule; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/ImportBatch.t b/t/db_dependent/ImportBatch.t index c9ef54391a..5cfd6e322e 100755 --- a/t/db_dependent/ImportBatch.t +++ b/t/db_dependent/ImportBatch.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 20; +use Test::NoWarnings; +use Test::More tests => 21; use utf8; use File::Basename; use File::Temp qw/tempfile/; diff --git a/t/db_dependent/ImportExportFramework.t b/t/db_dependent/ImportExportFramework.t index db88a7c72e..e8d3816ebf 100755 --- a/t/db_dependent/ImportExportFramework.t +++ b/t/db_dependent/ImportExportFramework.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::TestBuilder; diff --git a/t/db_dependent/Installer.t b/t/db_dependent/Installer.t index 2e9c0e26c8..d26328fb04 100755 --- a/t/db_dependent/Installer.t +++ b/t/db_dependent/Installer.t @@ -22,7 +22,8 @@ # Add more tests here!!! use Modern::Perl; -use Test::More tests => 22; +use Test::NoWarnings; +use Test::More tests => 23; use File::Temp qw(tempfile); use utf8; diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t index 1954162a0a..87fd540313 100755 --- a/t/db_dependent/Items.t +++ b/t/db_dependent/Items.t @@ -36,7 +36,8 @@ use Koha::AuthorisedValues; use t::lib::Mocks; use t::lib::TestBuilder; -use Test::More tests => 14; +use Test::NoWarnings; +use Test::More tests => 15; use Test::Warn; diff --git a/t/db_dependent/Items/AutomaticItemModificationByAge.t b/t/db_dependent/Items/AutomaticItemModificationByAge.t index 74532194b0..697461cd9b 100755 --- a/t/db_dependent/Items/AutomaticItemModificationByAge.t +++ b/t/db_dependent/Items/AutomaticItemModificationByAge.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 20; +use Test::NoWarnings; +use Test::More tests => 21; use MARC::Record; use MARC::Field; use DateTime; diff --git a/t/db_dependent/Items/GetAnalyticsCount.t b/t/db_dependent/Items/GetAnalyticsCount.t index 7430102b26..3ede834b08 100755 --- a/t/db_dependent/Items/GetAnalyticsCount.t +++ b/t/db_dependent/Items/GetAnalyticsCount.t @@ -1,6 +1,7 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::MockModule; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/Items/GetItemsForInventory.t b/t/db_dependent/Items/GetItemsForInventory.t index b5c2b97bd2..77766fb7ee 100755 --- a/t/db_dependent/Items/GetItemsForInventory.t +++ b/t/db_dependent/Items/GetItemsForInventory.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use t::lib::TestBuilder; use List::MoreUtils qw( any none ); diff --git a/t/db_dependent/Koha.t b/t/db_dependent/Koha.t index f802b5d972..c3d3b6e012 100755 --- a/t/db_dependent/Koha.t +++ b/t/db_dependent/Koha.t @@ -4,7 +4,8 @@ # It requires a working Koha database with the sample data use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::MockModule; use Test::Warn; use Test::Deep; diff --git a/t/db_dependent/Koha/Account.t b/t/db_dependent/Koha/Account.t index 39a84a7eb2..8c009aff5f 100755 --- a/t/db_dependent/Koha/Account.t +++ b/t/db_dependent/Koha/Account.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 15; +use Test::NoWarnings; +use Test::More tests => 16; use Test::MockModule; use Test::Exception; diff --git a/t/db_dependent/Koha/Account/DebitType.t b/t/db_dependent/Koha/Account/DebitType.t index 34e8ceec89..2256d535ec 100755 --- a/t/db_dependent/Koha/Account/DebitType.t +++ b/t/db_dependent/Koha/Account/DebitType.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use Koha::Account::DebitTypes; use Koha::Database; diff --git a/t/db_dependent/Koha/Account/DebitTypes.t b/t/db_dependent/Koha/Account/DebitTypes.t index 0c4812d2bd..70d2df4ad9 100755 --- a/t/db_dependent/Koha/Account/DebitTypes.t +++ b/t/db_dependent/Koha/Account/DebitTypes.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Koha::Account::DebitType; use Koha::Account::DebitTypes; diff --git a/t/db_dependent/Koha/Account/Line.t b/t/db_dependent/Koha/Account/Line.t index 20c9e64afa..5702e8151d 100755 --- a/t/db_dependent/Koha/Account/Line.t +++ b/t/db_dependent/Koha/Account/Line.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 15; +use Test::NoWarnings; +use Test::More tests => 16; use Test::Exception; use Test::MockModule; diff --git a/t/db_dependent/Koha/Account/Lines.t b/t/db_dependent/Koha/Account/Lines.t index 039fb809f0..4c2a70fc3f 100755 --- a/t/db_dependent/Koha/Account/Lines.t +++ b/t/db_dependent/Koha/Account/Lines.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::Exception; use Test::MockModule; diff --git a/t/db_dependent/Koha/Account/Offsets.t b/t/db_dependent/Koha/Account/Offsets.t index 54365f92b0..72f1e14014 100755 --- a/t/db_dependent/Koha/Account/Offsets.t +++ b/t/db_dependent/Koha/Account/Offsets.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Koha::Account::Offsets; diff --git a/t/db_dependent/Koha/Acquisition/Basket.t b/t/db_dependent/Koha/Acquisition/Basket.t index c3dc128513..d45fabdc8d 100755 --- a/t/db_dependent/Koha/Acquisition/Basket.t +++ b/t/db_dependent/Koha/Acquisition/Basket.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 13; +use Test::NoWarnings; +use Test::More tests => 14; use Test::Exception; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Acquisition/Baskets.t b/t/db_dependent/Koha/Acquisition/Baskets.t index 45a9071def..8a56da2517 100755 --- a/t/db_dependent/Koha/Acquisition/Baskets.t +++ b/t/db_dependent/Koha/Acquisition/Baskets.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::Database; use Koha::Acquisition::Basket; diff --git a/t/db_dependent/Koha/Acquisition/Budgets.t b/t/db_dependent/Koha/Acquisition/Budgets.t index e5aedefdad..408f3cb215 100755 --- a/t/db_dependent/Koha/Acquisition/Budgets.t +++ b/t/db_dependent/Koha/Acquisition/Budgets.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::Acquisition::Budgets; use Koha::Database; diff --git a/t/db_dependent/Koha/Acquisition/Currencies.t b/t/db_dependent/Koha/Acquisition/Currencies.t index 0412160c42..6a30b7ef52 100755 --- a/t/db_dependent/Koha/Acquisition/Currencies.t +++ b/t/db_dependent/Koha/Acquisition/Currencies.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use Koha::Database; use Koha::Acquisition::Currency; use Koha::Acquisition::Currencies; diff --git a/t/db_dependent/Koha/Acquisition/Fund.t b/t/db_dependent/Koha/Acquisition/Fund.t index fc21d0b38f..f3867e5d0b 100755 --- a/t/db_dependent/Koha/Acquisition/Fund.t +++ b/t/db_dependent/Koha/Acquisition/Fund.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::Warn; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Acquisition/Funds.t b/t/db_dependent/Koha/Acquisition/Funds.t index fc87ef7727..79458e24bd 100755 --- a/t/db_dependent/Koha/Acquisition/Funds.t +++ b/t/db_dependent/Koha/Acquisition/Funds.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::Acquisition::Funds; use Koha::Database; diff --git a/t/db_dependent/Koha/Acquisition/Invoice.t b/t/db_dependent/Koha/Acquisition/Invoice.t index e99f01f1c3..aa6cf7ec61 100755 --- a/t/db_dependent/Koha/Acquisition/Invoice.t +++ b/t/db_dependent/Koha/Acquisition/Invoice.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Acquisition/Invoice/Adjustments.t b/t/db_dependent/Koha/Acquisition/Invoice/Adjustments.t index 3419672b79..fbf8715cc1 100755 --- a/t/db_dependent/Koha/Acquisition/Invoice/Adjustments.t +++ b/t/db_dependent/Koha/Acquisition/Invoice/Adjustments.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use Koha::Database; diff --git a/t/db_dependent/Koha/Acquisition/Order.t b/t/db_dependent/Koha/Acquisition/Order.t index d74afa1ff5..2be93b2036 100755 --- a/t/db_dependent/Koha/Acquisition/Order.t +++ b/t/db_dependent/Koha/Acquisition/Order.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 13; +use Test::NoWarnings; +use Test::More tests => 14; use Test::Exception; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Acquisition/Orders.t b/t/db_dependent/Koha/Acquisition/Orders.t index a8bca21a8f..4b62dff84b 100755 --- a/t/db_dependent/Koha/Acquisition/Orders.t +++ b/t/db_dependent/Koha/Acquisition/Orders.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::Exception; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/ActionLogs.t b/t/db_dependent/Koha/ActionLogs.t index ede7e0cc5e..654acd0bc1 100755 --- a/t/db_dependent/Koha/ActionLogs.t +++ b/t/db_dependent/Koha/ActionLogs.t @@ -17,7 +17,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use C4::Context; use C4::Log qw( logaction ); diff --git a/t/db_dependent/Koha/AdditionalField.t b/t/db_dependent/Koha/AdditionalField.t index b369dc7ce2..8d4f604207 100755 --- a/t/db_dependent/Koha/AdditionalField.t +++ b/t/db_dependent/Koha/AdditionalField.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use String::Random qw(random_string); use Koha::AuthorisedValueCategory; diff --git a/t/db_dependent/Koha/ApiKey.t b/t/db_dependent/Koha/ApiKey.t index d9f46fce88..8e65b55b46 100755 --- a/t/db_dependent/Koha/ApiKey.t +++ b/t/db_dependent/Koha/ApiKey.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use Test::Exception; diff --git a/t/db_dependent/Koha/ArticleRequest.t b/t/db_dependent/Koha/ArticleRequest.t index 2d6819e763..c8c94cbdcf 100755 --- a/t/db_dependent/Koha/ArticleRequest.t +++ b/t/db_dependent/Koha/ArticleRequest.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::MockModule; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/ArticleRequests.t b/t/db_dependent/Koha/ArticleRequests.t index 1b240b6524..b73b1442be 100755 --- a/t/db_dependent/Koha/ArticleRequests.t +++ b/t/db_dependent/Koha/ArticleRequests.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use Koha::ArticleRequest::Status; diff --git a/t/db_dependent/Koha/Auth/Identity/Provider.t b/t/db_dependent/Koha/Auth/Identity/Provider.t index afea2aed07..9a1014ab27 100755 --- a/t/db_dependent/Koha/Auth/Identity/Provider.t +++ b/t/db_dependent/Koha/Auth/Identity/Provider.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::MockModule; use Test::Exception; diff --git a/t/db_dependent/Koha/Authorities.t b/t/db_dependent/Koha/Authorities.t index 6d0e1ffd74..f8c9d60b74 100755 --- a/t/db_dependent/Koha/Authorities.t +++ b/t/db_dependent/Koha/Authorities.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; use MARC::Field; use MARC::File::XML; use MARC::Record; diff --git a/t/db_dependent/Koha/BackgroundJob/BatchCancelHold.t b/t/db_dependent/Koha/BackgroundJob/BatchCancelHold.t index da9e4cae0b..9149e4d425 100755 --- a/t/db_dependent/Koha/BackgroundJob/BatchCancelHold.t +++ b/t/db_dependent/Koha/BackgroundJob/BatchCancelHold.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::BackgroundJobs; diff --git a/t/db_dependent/Koha/BackgroundJob/BatchDeleteAuthority.t b/t/db_dependent/Koha/BackgroundJob/BatchDeleteAuthority.t index 87302cf815..587c3f74f3 100755 --- a/t/db_dependent/Koha/BackgroundJob/BatchDeleteAuthority.t +++ b/t/db_dependent/Koha/BackgroundJob/BatchDeleteAuthority.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::BackgroundJobs; diff --git a/t/db_dependent/Koha/BackgroundJob/BatchDeleteBiblio.t b/t/db_dependent/Koha/BackgroundJob/BatchDeleteBiblio.t index 30e26bfb70..e070e439f2 100755 --- a/t/db_dependent/Koha/BackgroundJob/BatchDeleteBiblio.t +++ b/t/db_dependent/Koha/BackgroundJob/BatchDeleteBiblio.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::BackgroundJobs; diff --git a/t/db_dependent/Koha/BackgroundJob/BatchDeleteItem.t b/t/db_dependent/Koha/BackgroundJob/BatchDeleteItem.t index 1a45510bd5..f45be30b4c 100755 --- a/t/db_dependent/Koha/BackgroundJob/BatchDeleteItem.t +++ b/t/db_dependent/Koha/BackgroundJob/BatchDeleteItem.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::BackgroundJobs; diff --git a/t/db_dependent/Koha/BackgroundJob/BatchUpdateAuthority.t b/t/db_dependent/Koha/BackgroundJob/BatchUpdateAuthority.t index 9e9c223312..6f158a32a2 100755 --- a/t/db_dependent/Koha/BackgroundJob/BatchUpdateAuthority.t +++ b/t/db_dependent/Koha/BackgroundJob/BatchUpdateAuthority.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::BackgroundJobs; diff --git a/t/db_dependent/Koha/BackgroundJob/BatchUpdateBiblio.t b/t/db_dependent/Koha/BackgroundJob/BatchUpdateBiblio.t index 9a21b3b2ed..0e66b37c90 100755 --- a/t/db_dependent/Koha/BackgroundJob/BatchUpdateBiblio.t +++ b/t/db_dependent/Koha/BackgroundJob/BatchUpdateBiblio.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::BackgroundJobs; diff --git a/t/db_dependent/Koha/BackgroundJob/BatchUpdateBiblioHoldsQueue.t b/t/db_dependent/Koha/BackgroundJob/BatchUpdateBiblioHoldsQueue.t index f4f3f20440..40a7da17cd 100755 --- a/t/db_dependent/Koha/BackgroundJob/BatchUpdateBiblioHoldsQueue.t +++ b/t/db_dependent/Koha/BackgroundJob/BatchUpdateBiblioHoldsQueue.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Exception; use Koha::Database; diff --git a/t/db_dependent/Koha/BackgroundJob/BatchUpdateItem.t b/t/db_dependent/Koha/BackgroundJob/BatchUpdateItem.t index 83b38b05d7..0f0c2bc67b 100755 --- a/t/db_dependent/Koha/BackgroundJob/BatchUpdateItem.t +++ b/t/db_dependent/Koha/BackgroundJob/BatchUpdateItem.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::BackgroundJobs; diff --git a/t/db_dependent/Koha/BackgroundJob/CreateEHoldingsFromBiblios.t b/t/db_dependent/Koha/BackgroundJob/CreateEHoldingsFromBiblios.t index aa829aa708..712ef4ab6f 100755 --- a/t/db_dependent/Koha/BackgroundJob/CreateEHoldingsFromBiblios.t +++ b/t/db_dependent/Koha/BackgroundJob/CreateEHoldingsFromBiblios.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Koha::Database; use Koha::BackgroundJobs; diff --git a/t/db_dependent/Koha/BackgroundJob/ErmSushiHarvester.t b/t/db_dependent/Koha/BackgroundJob/ErmSushiHarvester.t index 9621f5a488..0212293cb8 100755 --- a/t/db_dependent/Koha/BackgroundJob/ErmSushiHarvester.t +++ b/t/db_dependent/Koha/BackgroundJob/ErmSushiHarvester.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Koha::Database; use Koha::BackgroundJobs; diff --git a/t/db_dependent/Koha/BackgroundJob/ImportKBARTFile.t b/t/db_dependent/Koha/BackgroundJob/ImportKBARTFile.t index e0abbb283a..f07821630c 100755 --- a/t/db_dependent/Koha/BackgroundJob/ImportKBARTFile.t +++ b/t/db_dependent/Koha/BackgroundJob/ImportKBARTFile.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Koha/BackgroundJob/MARCImportCommitBatch.t b/t/db_dependent/Koha/BackgroundJob/MARCImportCommitBatch.t index 04651adc58..ff9c0a3ce1 100755 --- a/t/db_dependent/Koha/BackgroundJob/MARCImportCommitBatch.t +++ b/t/db_dependent/Koha/BackgroundJob/MARCImportCommitBatch.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::BackgroundJobs; diff --git a/t/db_dependent/Koha/BackgroundJob/MARCImportRevertBatch.t b/t/db_dependent/Koha/BackgroundJob/MARCImportRevertBatch.t index e77d2d4cae..5991d50498 100755 --- a/t/db_dependent/Koha/BackgroundJob/MARCImportRevertBatch.t +++ b/t/db_dependent/Koha/BackgroundJob/MARCImportRevertBatch.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::BackgroundJobs; diff --git a/t/db_dependent/Koha/BackgroundJob/PseudonymizeStatistic.t b/t/db_dependent/Koha/BackgroundJob/PseudonymizeStatistic.t index d7adccec0c..a132484b53 100755 --- a/t/db_dependent/Koha/BackgroundJob/PseudonymizeStatistic.t +++ b/t/db_dependent/Koha/BackgroundJob/PseudonymizeStatistic.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Exception; use Koha::Database; diff --git a/t/db_dependent/Koha/BackgroundJob/StageMARCForImport.t b/t/db_dependent/Koha/BackgroundJob/StageMARCForImport.t index 1a8e0b495f..1738788256 100755 --- a/t/db_dependent/Koha/BackgroundJob/StageMARCForImport.t +++ b/t/db_dependent/Koha/BackgroundJob/StageMARCForImport.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::BackgroundJobs; diff --git a/t/db_dependent/Koha/BackgroundJob/UpdateElasticIndex.t b/t/db_dependent/Koha/BackgroundJob/UpdateElasticIndex.t index ccff377c04..98f3717e7c 100755 --- a/t/db_dependent/Koha/BackgroundJob/UpdateElasticIndex.t +++ b/t/db_dependent/Koha/BackgroundJob/UpdateElasticIndex.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::BackgroundJobs; diff --git a/t/db_dependent/Koha/BackgroundJobs.t b/t/db_dependent/Koha/BackgroundJobs.t index c8089d4488..45469adf92 100755 --- a/t/db_dependent/Koha/BackgroundJobs.t +++ b/t/db_dependent/Koha/BackgroundJobs.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 14; +use Test::NoWarnings; +use Test::More tests => 15; use Test::MockModule; use List::MoreUtils qw(any); diff --git a/t/db_dependent/Koha/BackgroundJobs/BatchDeleteBiblio.t b/t/db_dependent/Koha/BackgroundJobs/BatchDeleteBiblio.t index fa1a332fb4..ef9904c77e 100755 --- a/t/db_dependent/Koha/BackgroundJobs/BatchDeleteBiblio.t +++ b/t/db_dependent/Koha/BackgroundJobs/BatchDeleteBiblio.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::MockModule; use JSON qw( encode_json ); diff --git a/t/db_dependent/Koha/BackgroundJobs/BatchDeleteItem.t b/t/db_dependent/Koha/BackgroundJobs/BatchDeleteItem.t index ee40088c8c..f18ab6ce03 100755 --- a/t/db_dependent/Koha/BackgroundJobs/BatchDeleteItem.t +++ b/t/db_dependent/Koha/BackgroundJobs/BatchDeleteItem.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::MockModule; use JSON qw( encode_json ); diff --git a/t/db_dependent/Koha/BackgroundJobs/BatchUpdateBiblio.t b/t/db_dependent/Koha/BackgroundJobs/BatchUpdateBiblio.t index aa9b0e49d5..cc18769c6f 100755 --- a/t/db_dependent/Koha/BackgroundJobs/BatchUpdateBiblio.t +++ b/t/db_dependent/Koha/BackgroundJobs/BatchUpdateBiblio.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::MockModule; use Koha::Database; diff --git a/t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t b/t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t index f819e5d995..e7f66b4e21 100755 --- a/t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t +++ b/t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Koha::Database; use Koha::BackgroundJobs; diff --git a/t/db_dependent/Koha/BackgroundJobs/StageMARCForImport.t b/t/db_dependent/Koha/BackgroundJobs/StageMARCForImport.t index 7818807830..d230b8703f 100755 --- a/t/db_dependent/Koha/BackgroundJobs/StageMARCForImport.t +++ b/t/db_dependent/Koha/BackgroundJobs/StageMARCForImport.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::MockModule; use JSON qw( encode_json decode_json ); diff --git a/t/db_dependent/Koha/Biblio.t b/t/db_dependent/Koha/Biblio.t index aa753903c0..3715c5e6e3 100755 --- a/t/db_dependent/Koha/Biblio.t +++ b/t/db_dependent/Koha/Biblio.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 39; +use Test::NoWarnings; +use Test::More tests => 40; use Test::Exception; use Test::Warn; diff --git a/t/db_dependent/Koha/Biblio/ItemGroups.t b/t/db_dependent/Koha/Biblio/ItemGroups.t index f0d8accf14..8e4cfaccd5 100755 --- a/t/db_dependent/Koha/Biblio/ItemGroups.t +++ b/t/db_dependent/Koha/Biblio/ItemGroups.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Koha::Database; diff --git a/t/db_dependent/Koha/Biblio/Metadata.t b/t/db_dependent/Koha/Biblio/Metadata.t index 67a09b40ce..6b5d550e44 100755 --- a/t/db_dependent/Koha/Biblio/Metadata.t +++ b/t/db_dependent/Koha/Biblio/Metadata.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Exception; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC.t b/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC.t index 02907e08c5..31c30076d2 100755 --- a/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC.t +++ b/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Exception; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC/MARC21.t b/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC/MARC21.t index 80211f1271..de5c62d7f9 100755 --- a/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC/MARC21.t +++ b/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC/MARC21.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::Exception; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC/UNIMARC.t b/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC/UNIMARC.t index 99e1eb4538..929fe5dd93 100755 --- a/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC/UNIMARC.t +++ b/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC/UNIMARC.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Exception; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Biblio/host_record.t b/t/db_dependent/Koha/Biblio/host_record.t index c5c5827ad1..d41fd397fd 100755 --- a/t/db_dependent/Koha/Biblio/host_record.t +++ b/t/db_dependent/Koha/Biblio/host_record.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Data::Dumper qw/Dumper/; use MARC::Field; use MARC::Record; diff --git a/t/db_dependent/Koha/BiblioFrameworks.t b/t/db_dependent/Koha/BiblioFrameworks.t index d2e31d9149..4e736e93ef 100755 --- a/t/db_dependent/Koha/BiblioFrameworks.t +++ b/t/db_dependent/Koha/BiblioFrameworks.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Koha::BiblioFramework; use Koha::BiblioFrameworks; diff --git a/t/db_dependent/Koha/Biblios.t b/t/db_dependent/Koha/Biblios.t index fde249ffe5..b0bd5bad87 100755 --- a/t/db_dependent/Koha/Biblios.t +++ b/t/db_dependent/Koha/Biblios.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use Test::Exception; use Test::MockModule; diff --git a/t/db_dependent/Koha/Bookings.t b/t/db_dependent/Koha/Bookings.t index 40b3ce1bcb..5b3e99d424 100755 --- a/t/db_dependent/Koha/Bookings.t +++ b/t/db_dependent/Koha/Bookings.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Bookings; use Koha::Database; diff --git a/t/db_dependent/Koha/Cash/Register.t b/t/db_dependent/Koha/Cash/Register.t index 479d22326f..5e21ab4aba 100755 --- a/t/db_dependent/Koha/Cash/Register.t +++ b/t/db_dependent/Koha/Cash/Register.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::Exception; diff --git a/t/db_dependent/Koha/Cash/Register/Action.t b/t/db_dependent/Koha/Cash/Register/Action.t index 233c1a7590..bea719650f 100755 --- a/t/db_dependent/Koha/Cash/Register/Action.t +++ b/t/db_dependent/Koha/Cash/Register/Action.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Koha::Database; diff --git a/t/db_dependent/Koha/Cash/Register/Cashup.t b/t/db_dependent/Koha/Cash/Register/Cashup.t index df373c3d87..275d77855a 100755 --- a/t/db_dependent/Koha/Cash/Register/Cashup.t +++ b/t/db_dependent/Koha/Cash/Register/Cashup.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Koha::Database; diff --git a/t/db_dependent/Koha/Cash/Register/Cashups.t b/t/db_dependent/Koha/Cash/Register/Cashups.t index 7f009a528d..af097a2117 100755 --- a/t/db_dependent/Koha/Cash/Register/Cashups.t +++ b/t/db_dependent/Koha/Cash/Register/Cashups.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; diff --git a/t/db_dependent/Koha/Charges/Fees.t b/t/db_dependent/Koha/Charges/Fees.t index 2f2af9d876..ccb3bf315d 100755 --- a/t/db_dependent/Koha/Charges/Fees.t +++ b/t/db_dependent/Koha/Charges/Fees.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use Test::Exception; use Test::Warn; diff --git a/t/db_dependent/Koha/Charges/Sales.t b/t/db_dependent/Koha/Charges/Sales.t index 1a7aa9f43b..89ba61b0a8 100755 --- a/t/db_dependent/Koha/Charges/Sales.t +++ b/t/db_dependent/Koha/Charges/Sales.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Exception; use Koha::Database; diff --git a/t/db_dependent/Koha/Checkout.t b/t/db_dependent/Koha/Checkout.t index cb27ff90c4..8e5b35d689 100755 --- a/t/db_dependent/Koha/Checkout.t +++ b/t/db_dependent/Koha/Checkout.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use t::lib::TestBuilder; use Koha::Database; diff --git a/t/db_dependent/Koha/Checkouts.t b/t/db_dependent/Koha/Checkouts.t index deb166fdba..a382132b4d 100755 --- a/t/db_dependent/Koha/Checkouts.t +++ b/t/db_dependent/Koha/Checkouts.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Koha/Checkouts/Renewal.t b/t/db_dependent/Koha/Checkouts/Renewal.t index 9e1a42a3dc..56b5e1c46c 100755 --- a/t/db_dependent/Koha/Checkouts/Renewal.t +++ b/t/db_dependent/Koha/Checkouts/Renewal.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::Exception; use Koha::Database; diff --git a/t/db_dependent/Koha/Checkouts/ReturnClaim.t b/t/db_dependent/Koha/Checkouts/ReturnClaim.t index 5d5ebda400..0635152c0b 100755 --- a/t/db_dependent/Koha/Checkouts/ReturnClaim.t +++ b/t/db_dependent/Koha/Checkouts/ReturnClaim.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::Exception; use Koha::Database; diff --git a/t/db_dependent/Koha/CirculationRules.t b/t/db_dependent/Koha/CirculationRules.t index 928fe6104b..ff2c8cd2f5 100755 --- a/t/db_dependent/Koha/CirculationRules.t +++ b/t/db_dependent/Koha/CirculationRules.t @@ -20,7 +20,8 @@ use Modern::Perl; use Benchmark; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use Test::Deep qw( cmp_methods ); use Test::Exception; diff --git a/t/db_dependent/Koha/CirculationRules/guess_article_requestable_itemtypes.t b/t/db_dependent/Koha/CirculationRules/guess_article_requestable_itemtypes.t index f5c0f8aa9b..34936d5a90 100755 --- a/t/db_dependent/Koha/CirculationRules/guess_article_requestable_itemtypes.t +++ b/t/db_dependent/Koha/CirculationRules/guess_article_requestable_itemtypes.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Cities.t b/t/db_dependent/Koha/Cities.t index acf44b3a04..48fa9d7291 100755 --- a/t/db_dependent/Koha/Cities.t +++ b/t/db_dependent/Koha/Cities.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::City; use Koha::Cities; diff --git a/t/db_dependent/Koha/ClassSortRules.t b/t/db_dependent/Koha/ClassSortRules.t index e83d93ba59..39682eef57 100755 --- a/t/db_dependent/Koha/ClassSortRules.t +++ b/t/db_dependent/Koha/ClassSortRules.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::Database; diff --git a/t/db_dependent/Koha/ClassSources.t b/t/db_dependent/Koha/ClassSources.t index c1772b1654..970830c13e 100755 --- a/t/db_dependent/Koha/ClassSources.t +++ b/t/db_dependent/Koha/ClassSources.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::Database; diff --git a/t/db_dependent/Koha/ClassSplitRules.t b/t/db_dependent/Koha/ClassSplitRules.t index 2224dcc17e..d6c70bcf5a 100755 --- a/t/db_dependent/Koha/ClassSplitRules.t +++ b/t/db_dependent/Koha/ClassSplitRules.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::ClassSplitRules; diff --git a/t/db_dependent/Koha/Club/Enrollment.t b/t/db_dependent/Koha/Club/Enrollment.t index 528be79151..442e01d6e0 100755 --- a/t/db_dependent/Koha/Club/Enrollment.t +++ b/t/db_dependent/Koha/Club/Enrollment.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Exception; use Koha::Patron; diff --git a/t/db_dependent/Koha/Club/Hold.t b/t/db_dependent/Koha/Club/Hold.t index d705f1d807..bfe8b80541 100755 --- a/t/db_dependent/Koha/Club/Hold.t +++ b/t/db_dependent/Koha/Club/Hold.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Exception; use Try::Tiny; diff --git a/t/db_dependent/Koha/Config/SysPrefs.t b/t/db_dependent/Koha/Config/SysPrefs.t index 0f540edd30..9a4345e0a1 100755 --- a/t/db_dependent/Koha/Config/SysPrefs.t +++ b/t/db_dependent/Koha/Config/SysPrefs.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Course.t b/t/db_dependent/Koha/Course.t index af23e03d54..6d30a7b005 100755 --- a/t/db_dependent/Koha/Course.t +++ b/t/db_dependent/Koha/Course.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Course; use Koha::Courses; diff --git a/t/db_dependent/Koha/Courses.t b/t/db_dependent/Koha/Courses.t index 31c17b75b7..ee9faaad21 100755 --- a/t/db_dependent/Koha/Courses.t +++ b/t/db_dependent/Koha/Courses.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/CsvProfiles.t b/t/db_dependent/Koha/CsvProfiles.t index d823f40404..95224ddd1c 100755 --- a/t/db_dependent/Koha/CsvProfiles.t +++ b/t/db_dependent/Koha/CsvProfiles.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::CsvProfile; use Koha::CsvProfiles; diff --git a/t/db_dependent/Koha/CurbsidePickups.t b/t/db_dependent/Koha/CurbsidePickups.t index 3b98bef472..e4faf629ed 100755 --- a/t/db_dependent/Koha/CurbsidePickups.t +++ b/t/db_dependent/Koha/CurbsidePickups.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::Exception; use C4::Calendar; diff --git a/t/db_dependent/Koha/Database.t b/t/db_dependent/Koha/Database.t index 3543992e71..76133abe0f 100755 --- a/t/db_dependent/Koha/Database.t +++ b/t/db_dependent/Koha/Database.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use C4::Context; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/Database/Commenter.t b/t/db_dependent/Koha/Database/Commenter.t index 25bbeda010..38d609c8c0 100755 --- a/t/db_dependent/Koha/Database/Commenter.t +++ b/t/db_dependent/Koha/Database/Commenter.t @@ -2,7 +2,8 @@ use Modern::Perl; use File::Temp qw(); -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Exception; use C4::Context; diff --git a/t/db_dependent/Koha/Desks.t b/t/db_dependent/Koha/Desks.t index 89814456ff..9cf7bd8354 100755 --- a/t/db_dependent/Koha/Desks.t +++ b/t/db_dependent/Koha/Desks.t @@ -20,7 +20,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::Desk; use Koha::Desks; diff --git a/t/db_dependent/Koha/ERM/Agreements.t b/t/db_dependent/Koha/ERM/Agreements.t index 6cbf8cac4d..8826b09330 100755 --- a/t/db_dependent/Koha/ERM/Agreements.t +++ b/t/db_dependent/Koha/ERM/Agreements.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Koha::ERM::Agreements; use Koha::Database; diff --git a/t/db_dependent/Koha/ERM/EUsage/CounterFile.t b/t/db_dependent/Koha/ERM/EUsage/CounterFile.t index 7d36fe82e6..f4ab82f16b 100755 --- a/t/db_dependent/Koha/ERM/EUsage/CounterFile.t +++ b/t/db_dependent/Koha/ERM/EUsage/CounterFile.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Koha::Database; use Koha::ERM::EUsage::CounterFile; diff --git a/t/db_dependent/Koha/ERM/EUsage/CounterLog.t b/t/db_dependent/Koha/ERM/EUsage/CounterLog.t index 86fef487bc..5226e93f99 100755 --- a/t/db_dependent/Koha/ERM/EUsage/CounterLog.t +++ b/t/db_dependent/Koha/ERM/EUsage/CounterLog.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::ERM::EUsage::CounterLog; diff --git a/t/db_dependent/Koha/ERM/EUsage/SushiCounter.t b/t/db_dependent/Koha/ERM/EUsage/SushiCounter.t index e47568f606..641dd5f4f1 100755 --- a/t/db_dependent/Koha/ERM/EUsage/SushiCounter.t +++ b/t/db_dependent/Koha/ERM/EUsage/SushiCounter.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 18; +use Test::NoWarnings; +use Test::More tests => 19; use Koha::ERM::EUsage::SushiCounter; use Koha::Database; diff --git a/t/db_dependent/Koha/ERM/EUsage/UsageDataProvider.t b/t/db_dependent/Koha/ERM/EUsage/UsageDataProvider.t index 941bfe351d..ba30028c26 100755 --- a/t/db_dependent/Koha/ERM/EUsage/UsageDataProvider.t +++ b/t/db_dependent/Koha/ERM/EUsage/UsageDataProvider.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Koha::ERM::EUsage::UsageDataProvider; use Koha::Database; diff --git a/t/db_dependent/Koha/Edifact/File.t b/t/db_dependent/Koha/Edifact/File.t index 0792994d12..21ef32499a 100755 --- a/t/db_dependent/Koha/Edifact/File.t +++ b/t/db_dependent/Koha/Edifact/File.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Koha::Edifact::Files; diff --git a/t/db_dependent/Koha/Edifact/Order.t b/t/db_dependent/Koha/Edifact/Order.t index 3630a8172d..8b3009d0a2 100755 --- a/t/db_dependent/Koha/Edifact/Order.t +++ b/t/db_dependent/Koha/Edifact/Order.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Koha::Edifact::Order; diff --git a/t/db_dependent/Koha/Edifact/Transport.t b/t/db_dependent/Koha/Edifact/Transport.t index 83f05afa68..3e4efbb45a 100755 --- a/t/db_dependent/Koha/Edifact/Transport.t +++ b/t/db_dependent/Koha/Edifact/Transport.t @@ -2,7 +2,8 @@ use Modern::Perl; use FindBin qw( $Bin ); -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::Warn; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Filter/EmbedItems.t b/t/db_dependent/Koha/Filter/EmbedItems.t index 524bfb5f34..a94d6c3e57 100755 --- a/t/db_dependent/Koha/Filter/EmbedItems.t +++ b/t/db_dependent/Koha/Filter/EmbedItems.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Filter/EmbedItemsAvailability.t b/t/db_dependent/Koha/Filter/EmbedItemsAvailability.t index ef1249eec6..4726b1d1fc 100755 --- a/t/db_dependent/Koha/Filter/EmbedItemsAvailability.t +++ b/t/db_dependent/Koha/Filter/EmbedItemsAvailability.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::MockModule; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/Filter/ExpandCodedFields.t b/t/db_dependent/Koha/Filter/ExpandCodedFields.t index ac33dc9a14..efb9e1ccc2 100755 --- a/t/db_dependent/Koha/Filter/ExpandCodedFields.t +++ b/t/db_dependent/Koha/Filter/ExpandCodedFields.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Hold.t b/t/db_dependent/Koha/Hold.t index e8d1dc5155..4e722eb1d2 100755 --- a/t/db_dependent/Koha/Hold.t +++ b/t/db_dependent/Koha/Hold.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 14; +use Test::NoWarnings; +use Test::More tests => 15; use Test::Exception; use Test::MockModule; diff --git a/t/db_dependent/Koha/Holds.t b/t/db_dependent/Koha/Holds.t index 4310370f28..41a1e4a507 100755 --- a/t/db_dependent/Koha/Holds.t +++ b/t/db_dependent/Koha/Holds.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use Test::Warn; use C4::Circulation qw( AddIssue ); diff --git a/t/db_dependent/Koha/ILL/Backend.t b/t/db_dependent/Koha/ILL/Backend.t index b552eee297..c374fd28c0 100755 --- a/t/db_dependent/Koha/ILL/Backend.t +++ b/t/db_dependent/Koha/ILL/Backend.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::ILL::Backend; diff --git a/t/db_dependent/Koha/ILL/Batch.t b/t/db_dependent/Koha/ILL/Batch.t index eaa6df4232..4f202f51dc 100755 --- a/t/db_dependent/Koha/ILL/Batch.t +++ b/t/db_dependent/Koha/ILL/Batch.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; diff --git a/t/db_dependent/Koha/ILL/Batch/Statuses.t b/t/db_dependent/Koha/ILL/Batch/Statuses.t index 80052ee40a..2addcc1c30 100755 --- a/t/db_dependent/Koha/ILL/Batch/Statuses.t +++ b/t/db_dependent/Koha/ILL/Batch/Statuses.t @@ -28,7 +28,8 @@ use t::lib::TestBuilder; use Test::MockObject; use Test::MockModule; -use Test::More tests => 13; +use Test::NoWarnings; +use Test::More tests => 14; my $schema = Koha::Database->new->schema; my $builder = t::lib::TestBuilder->new; diff --git a/t/db_dependent/Koha/ILL/Batches.t b/t/db_dependent/Koha/ILL/Batches.t index 8580f75dae..2988ae218a 100755 --- a/t/db_dependent/Koha/ILL/Batches.t +++ b/t/db_dependent/Koha/ILL/Batches.t @@ -27,7 +27,8 @@ use t::lib::TestBuilder; use Test::MockObject; use Test::MockModule; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; my $schema = Koha::Database->new->schema; my $builder = t::lib::TestBuilder->new; diff --git a/t/db_dependent/Koha/ILL/Comments.t b/t/db_dependent/Koha/ILL/Comments.t index 2c57ba8646..359a7be0f6 100755 --- a/t/db_dependent/Koha/ILL/Comments.t +++ b/t/db_dependent/Koha/ILL/Comments.t @@ -28,7 +28,8 @@ use t::lib::TestBuilder; use Test::MockObject; use Test::MockModule; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; my $schema = Koha::Database->new->schema; my $builder = t::lib::TestBuilder->new; diff --git a/t/db_dependent/Koha/ILL/Request.t b/t/db_dependent/Koha/ILL/Request.t index 996a144c08..bc0b2fb964 100755 --- a/t/db_dependent/Koha/ILL/Request.t +++ b/t/db_dependent/Koha/ILL/Request.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::MockModule; use Koha::ILL::Requests; diff --git a/t/db_dependent/Koha/ILL/Request/Attributes.t b/t/db_dependent/Koha/ILL/Request/Attributes.t index afcab4d426..d3262c1676 100755 --- a/t/db_dependent/Koha/ILL/Request/Attributes.t +++ b/t/db_dependent/Koha/ILL/Request/Attributes.t @@ -22,7 +22,8 @@ use Koha::Database; use Koha::Patrons; use t::lib::TestBuilder; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; my $schema = Koha::Database->new->schema; use_ok('Koha::ILL::Request::Attribute'); diff --git a/t/db_dependent/Koha/ILL/Request/Config.t b/t/db_dependent/Koha/ILL/Request/Config.t index 2d4b60f260..3dc8d0537a 100755 --- a/t/db_dependent/Koha/ILL/Request/Config.t +++ b/t/db_dependent/Koha/ILL/Request/Config.t @@ -23,7 +23,8 @@ use t::lib::TestBuilder; use Test::MockObject; use Test::Exception; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; my $schema = Koha::Database->new->schema; my $builder = t::lib::TestBuilder->new; diff --git a/t/db_dependent/Koha/ILL/Request/Logger.t b/t/db_dependent/Koha/ILL/Request/Logger.t index 8fc5e7fb8f..be10dbf9a6 100755 --- a/t/db_dependent/Koha/ILL/Request/Logger.t +++ b/t/db_dependent/Koha/ILL/Request/Logger.t @@ -20,7 +20,8 @@ use Modern::Perl; use Koha::Database; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use Test::MockObject; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/ILL/Request/SupplierUpdate.t b/t/db_dependent/Koha/ILL/Request/SupplierUpdate.t index 00dcfe3fc3..f89f196923 100755 --- a/t/db_dependent/Koha/ILL/Request/SupplierUpdate.t +++ b/t/db_dependent/Koha/ILL/Request/SupplierUpdate.t @@ -22,7 +22,8 @@ use Test::MockObject; use Koha::ILL::Request; use Koha::ILL::Request::SupplierUpdate; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use_ok('Koha::ILL::Request::SupplierUpdate'); diff --git a/t/db_dependent/Koha/ILL/Request/SupplierUpdateProcessor.t b/t/db_dependent/Koha/ILL/Request/SupplierUpdateProcessor.t index d4110f30bd..a7848b9407 100755 --- a/t/db_dependent/Koha/ILL/Request/SupplierUpdateProcessor.t +++ b/t/db_dependent/Koha/ILL/Request/SupplierUpdateProcessor.t @@ -19,7 +19,8 @@ use Modern::Perl; use Koha::ILL::Request::SupplierUpdateProcessor; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::Warn; my $processor = Koha::ILL::Request::SupplierUpdateProcessor->new( diff --git a/t/db_dependent/Koha/ILL/Request/Workflow/Availability.t b/t/db_dependent/Koha/ILL/Request/Workflow/Availability.t index d80dca387a..2688b57562 100755 --- a/t/db_dependent/Koha/ILL/Request/Workflow/Availability.t +++ b/t/db_dependent/Koha/ILL/Request/Workflow/Availability.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::MockModule; use Test::MockObject; diff --git a/t/db_dependent/Koha/ILL/Request/Workflow/TypeDisclaimer.t b/t/db_dependent/Koha/ILL/Request/Workflow/TypeDisclaimer.t index b910f2c9da..36f301975c 100755 --- a/t/db_dependent/Koha/ILL/Request/Workflow/TypeDisclaimer.t +++ b/t/db_dependent/Koha/ILL/Request/Workflow/TypeDisclaimer.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::MockModule; use Test::MockObject; diff --git a/t/db_dependent/Koha/ILL/Requests.t b/t/db_dependent/Koha/ILL/Requests.t index c4a536f01a..46b2a04efc 100755 --- a/t/db_dependent/Koha/ILL/Requests.t +++ b/t/db_dependent/Koha/ILL/Requests.t @@ -41,7 +41,8 @@ use Test::Exception; use Test::Deep qw/ cmp_deeply ignore /; use Test::Warn; -use Test::More tests => 16; +use Test::NoWarnings; +use Test::More tests => 17; my $schema = Koha::Database->new->schema; my $builder = t::lib::TestBuilder->new; diff --git a/t/db_dependent/Koha/Import/Record/Auths.t b/t/db_dependent/Koha/Import/Record/Auths.t index d992a41735..186519332b 100755 --- a/t/db_dependent/Koha/Import/Record/Auths.t +++ b/t/db_dependent/Koha/Import/Record/Auths.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Koha::Import::Record::Auths; use Koha::Database; diff --git a/t/db_dependent/Koha/Import/Record/Biblios.t b/t/db_dependent/Koha/Import/Record/Biblios.t index cfd0f71b9d..29847b2f5d 100755 --- a/t/db_dependent/Koha/Import/Record/Biblios.t +++ b/t/db_dependent/Koha/Import/Record/Biblios.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Koha::Import::Record::Biblios; use Koha::Database; diff --git a/t/db_dependent/Koha/Import/Record/Items.t b/t/db_dependent/Koha/Import/Record/Items.t index de5b6dd916..2353b3336c 100755 --- a/t/db_dependent/Koha/Import/Record/Items.t +++ b/t/db_dependent/Koha/Import/Record/Items.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Koha::Import::Record::Items; use Koha::Database; diff --git a/t/db_dependent/Koha/Import/Record/Matches.t b/t/db_dependent/Koha/Import/Record/Matches.t index 36c12a6a7b..480ad267d0 100755 --- a/t/db_dependent/Koha/Import/Record/Matches.t +++ b/t/db_dependent/Koha/Import/Record/Matches.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Koha::Import::Record::Matches; use Koha::Database; diff --git a/t/db_dependent/Koha/Import/Records.t b/t/db_dependent/Koha/Import/Records.t index c6df426207..9b70876d87 100755 --- a/t/db_dependent/Koha/Import/Records.t +++ b/t/db_dependent/Koha/Import/Records.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 11; +use Test::NoWarnings; +use Test::More tests => 12; use Koha::Import::Records; use Koha::Database; diff --git a/t/db_dependent/Koha/Item.t b/t/db_dependent/Koha/Item.t index 7d115cdb3a..5213f3a2dd 100755 --- a/t/db_dependent/Koha/Item.t +++ b/t/db_dependent/Koha/Item.t @@ -20,7 +20,8 @@ use Modern::Perl; use utf8; -use Test::More tests => 38; +use Test::NoWarnings; +use Test::More tests => 39; use Test::Exception; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Koha/Item/Attributes.t b/t/db_dependent/Koha/Item/Attributes.t index 3f7d8abf2d..5b10f05f19 100755 --- a/t/db_dependent/Koha/Item/Attributes.t +++ b/t/db_dependent/Koha/Item/Attributes.t @@ -16,6 +16,7 @@ # along with Koha; if not, see . use Modern::Perl; +use Test::NoWarnings; use Test::More tests=> 10; use utf8; diff --git a/t/db_dependent/Koha/Item/Search/Field.t b/t/db_dependent/Koha/Item/Search/Field.t index 9e73880478..425dc76a98 100755 --- a/t/db_dependent/Koha/Item/Search/Field.t +++ b/t/db_dependent/Koha/Item/Search/Field.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 11; +use Test::NoWarnings; +use Test::More tests => 12; use C4::Context; use Koha::Database; diff --git a/t/db_dependent/Koha/Item/Template.t b/t/db_dependent/Koha/Item/Template.t index 8174c2dd44..e39345f1ef 100755 --- a/t/db_dependent/Koha/Item/Template.t +++ b/t/db_dependent/Koha/Item/Template.t @@ -26,7 +26,8 @@ use Koha::Database; use t::lib::TestBuilder; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; my $schema = Koha::Database->new->schema; my $builder = t::lib::TestBuilder->new; diff --git a/t/db_dependent/Koha/Item/Templates.t b/t/db_dependent/Koha/Item/Templates.t index dca1e66511..398a57580c 100755 --- a/t/db_dependent/Koha/Item/Templates.t +++ b/t/db_dependent/Koha/Item/Templates.t @@ -24,7 +24,8 @@ use Koha::Database; use t::lib::TestBuilder; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; my $schema = Koha::Database->new->schema; my $builder = t::lib::TestBuilder->new; diff --git a/t/db_dependent/Koha/Item/Transfer.t b/t/db_dependent/Koha/Item/Transfer.t index 2ac3462351..a2d2324e55 100755 --- a/t/db_dependent/Koha/Item/Transfer.t +++ b/t/db_dependent/Koha/Item/Transfer.t @@ -24,7 +24,8 @@ use Koha::DateUtils qw( dt_from_string ); use t::lib::TestBuilder; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use Test::Exception; my $schema = Koha::Database->new->schema; diff --git a/t/db_dependent/Koha/Item/Transfers.t b/t/db_dependent/Koha/Item/Transfers.t index 35cce33bcb..1070aebba0 100755 --- a/t/db_dependent/Koha/Item/Transfers.t +++ b/t/db_dependent/Koha/Item/Transfers.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::Item::Transfer; use Koha::Item::Transfers; diff --git a/t/db_dependent/Koha/ItemTypes.t b/t/db_dependent/Koha/ItemTypes.t index d62cf05e48..6f5d8ea891 100755 --- a/t/db_dependent/Koha/ItemTypes.t +++ b/t/db_dependent/Koha/ItemTypes.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 15; +use Test::NoWarnings; +use Test::More tests => 16; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Items.t b/t/db_dependent/Koha/Items.t index 03b26550eb..6508fb5648 100755 --- a/t/db_dependent/Koha/Items.t +++ b/t/db_dependent/Koha/Items.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 20; +use Test::NoWarnings; +use Test::More tests => 21; use Test::MockModule; use Test::Exception; diff --git a/t/db_dependent/Koha/Items/BatchUpdate.t b/t/db_dependent/Koha/Items/BatchUpdate.t index af6e5b6c43..79cd3d32c4 100755 --- a/t/db_dependent/Koha/Items/BatchUpdate.t +++ b/t/db_dependent/Koha/Items/BatchUpdate.t @@ -16,6 +16,7 @@ # along with Koha; if not, see . use Modern::Perl; +use Test::NoWarnings; use Test::More tests=> 8; use Test::Warn; use utf8; diff --git a/t/db_dependent/Koha/KeyboardShortcuts.t b/t/db_dependent/Koha/KeyboardShortcuts.t index fc98a1b933..885266bb2d 100755 --- a/t/db_dependent/Koha/KeyboardShortcuts.t +++ b/t/db_dependent/Koha/KeyboardShortcuts.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::Database; diff --git a/t/db_dependent/Koha/Libraries.t b/t/db_dependent/Koha/Libraries.t index 5c746d679d..b88f1317ec 100755 --- a/t/db_dependent/Koha/Libraries.t +++ b/t/db_dependent/Koha/Libraries.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 13; +use Test::NoWarnings; +use Test::More tests => 14; use C4::Biblio; use C4::Context; diff --git a/t/db_dependent/Koha/Library.t b/t/db_dependent/Koha/Library.t index 661803d815..376be865d0 100755 --- a/t/db_dependent/Koha/Library.t +++ b/t/db_dependent/Koha/Library.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Koha::Database; use Koha::AdditionalContents; diff --git a/t/db_dependent/Koha/Library/OverDriveInfos.t b/t/db_dependent/Koha/Library/OverDriveInfos.t index 02802a3b6a..ed4410ee1c 100755 --- a/t/db_dependent/Koha/Library/OverDriveInfos.t +++ b/t/db_dependent/Koha/Library/OverDriveInfos.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::Library::OverDriveInfos; use Koha::Database; diff --git a/t/db_dependent/Koha/MarcSubfieldStructures.t b/t/db_dependent/Koha/MarcSubfieldStructures.t index 7a755d9851..9e5652e690 100755 --- a/t/db_dependent/Koha/MarcSubfieldStructures.t +++ b/t/db_dependent/Koha/MarcSubfieldStructures.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::MarcSubfieldStructures; use Koha::Database; diff --git a/t/db_dependent/Koha/Notice/Message.t b/t/db_dependent/Koha/Notice/Message.t index d5ebe52788..1bd204d01f 100755 --- a/t/db_dependent/Koha/Notice/Message.t +++ b/t/db_dependent/Koha/Notice/Message.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use C4::Letters qw( GetPreparedLetter EnqueueLetter ); diff --git a/t/db_dependent/Koha/Notice/Template.t b/t/db_dependent/Koha/Notice/Template.t index 32c11e5c62..fda83208c1 100755 --- a/t/db_dependent/Koha/Notice/Template.t +++ b/t/db_dependent/Koha/Notice/Template.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use_ok('Koha::Notice::Template'); diff --git a/t/db_dependent/Koha/Notice_Util.t b/t/db_dependent/Koha/Notice_Util.t index 805d6313ad..276ba05a7f 100755 --- a/t/db_dependent/Koha/Notice_Util.t +++ b/t/db_dependent/Koha/Notice_Util.t @@ -19,7 +19,8 @@ use Modern::Perl; #use Data::Dumper qw/Dumper/; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Koha/Notices.t b/t/db_dependent/Koha/Notices.t index 9a58e9e758..4059a4b093 100755 --- a/t/db_dependent/Koha/Notices.t +++ b/t/db_dependent/Koha/Notices.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 9; +use Test::NoWarnings; +use Test::More tests => 10; use Koha::Notice::Templates; use Koha::Database; diff --git a/t/db_dependent/Koha/OAIHarvester.t b/t/db_dependent/Koha/OAIHarvester.t index 7aa0886bca..ab835c9536 100755 --- a/t/db_dependent/Koha/OAIHarvester.t +++ b/t/db_dependent/Koha/OAIHarvester.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 28; +use Test::NoWarnings; +use Test::More tests => 29; use Test::Exception; use File::Temp qw/tempfile/; use Scalar::Util qw//; diff --git a/t/db_dependent/Koha/OAIServers.t b/t/db_dependent/Koha/OAIServers.t index 22d9cab649..8c189e76d2 100755 --- a/t/db_dependent/Koha/OAIServers.t +++ b/t/db_dependent/Koha/OAIServers.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Exception; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Object.t b/t/db_dependent/Koha/Object.t index 606182d241..66cdc28112 100755 --- a/t/db_dependent/Koha/Object.t +++ b/t/db_dependent/Koha/Object.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 23; +use Test::NoWarnings; +use Test::More tests => 24; use Test::Exception; use Test::Warn; diff --git a/t/db_dependent/Koha/Object/Mixin/AdditionalFields.t b/t/db_dependent/Koha/Object/Mixin/AdditionalFields.t index c969c42599..9ea18fa204 100755 --- a/t/db_dependent/Koha/Object/Mixin/AdditionalFields.t +++ b/t/db_dependent/Koha/Object/Mixin/AdditionalFields.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use t::lib::TestBuilder; use String::Random qw(random_string); use Koha::Database; diff --git a/t/db_dependent/Koha/Objects.t b/t/db_dependent/Koha/Objects.t index e98ddf8f3a..55d51eeaf4 100755 --- a/t/db_dependent/Koha/Objects.t +++ b/t/db_dependent/Koha/Objects.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 23; +use Test::NoWarnings; +use Test::More tests => 24; use Test::Exception; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Koha/Objects/Mixin/AdditionalFields.t b/t/db_dependent/Koha/Objects/Mixin/AdditionalFields.t index 301a40ff41..608de14bdf 100755 --- a/t/db_dependent/Koha/Objects/Mixin/AdditionalFields.t +++ b/t/db_dependent/Koha/Objects/Mixin/AdditionalFields.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use Koha::Acquisition::Baskets; # Koha::Acquisition::Baskets uses the mixin use Koha::AdditionalFields; diff --git a/t/db_dependent/Koha/Objects/Mixin/ExtendedAttributes.t b/t/db_dependent/Koha/Objects/Mixin/ExtendedAttributes.t index 29a09e7991..bd2f260521 100755 --- a/t/db_dependent/Koha/Objects/Mixin/ExtendedAttributes.t +++ b/t/db_dependent/Koha/Objects/Mixin/ExtendedAttributes.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use C4::Context; use Koha::Database; diff --git a/t/db_dependent/Koha/Objects/Record/Collections.t b/t/db_dependent/Koha/Objects/Record/Collections.t index a6c26c261f..281ea66366 100755 --- a/t/db_dependent/Koha/Objects/Record/Collections.t +++ b/t/db_dependent/Koha/Objects/Record/Collections.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Biblios; use Koha::Database; diff --git a/t/db_dependent/Koha/Old.t b/t/db_dependent/Koha/Old.t index 42bdbe4d65..0297cc80ea 100755 --- a/t/db_dependent/Koha/Old.t +++ b/t/db_dependent/Koha/Old.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Koha::Database; use Koha::Old::Patrons; diff --git a/t/db_dependent/Koha/Old/Checkout.t b/t/db_dependent/Koha/Old/Checkout.t index 7cf520e96f..adfbdf10df 100755 --- a/t/db_dependent/Koha/Old/Checkout.t +++ b/t/db_dependent/Koha/Old/Checkout.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Exception; use Koha::Database; diff --git a/t/db_dependent/Koha/Old/Checkouts.t b/t/db_dependent/Koha/Old/Checkouts.t index 250b258a6e..87f42b339a 100755 --- a/t/db_dependent/Koha/Old/Checkouts.t +++ b/t/db_dependent/Koha/Old/Checkouts.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Exception; use Koha::Database; diff --git a/t/db_dependent/Koha/Old/Holds.t b/t/db_dependent/Koha/Old/Holds.t index cd791ad350..043e80b0b3 100755 --- a/t/db_dependent/Koha/Old/Holds.t +++ b/t/db_dependent/Koha/Old/Holds.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Exception; use Koha::Database; diff --git a/t/db_dependent/Koha/Patron/Attribute.t b/t/db_dependent/Koha/Patron/Attribute.t index e9e9f9c7fb..5f2ee9b07d 100755 --- a/t/db_dependent/Koha/Patron/Attribute.t +++ b/t/db_dependent/Koha/Patron/Attribute.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use t::lib::TestBuilder; use Test::Exception; diff --git a/t/db_dependent/Koha/Patron/Attribute/Types.t b/t/db_dependent/Koha/Patron/Attribute/Types.t index c7bb0d2fbc..76cc31d8f6 100755 --- a/t/db_dependent/Koha/Patron/Attribute/Types.t +++ b/t/db_dependent/Koha/Patron/Attribute/Types.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/Patron/Categories.t b/t/db_dependent/Koha/Patron/Categories.t index 4bee746332..a46d320c55 100755 --- a/t/db_dependent/Koha/Patron/Categories.t +++ b/t/db_dependent/Koha/Patron/Categories.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; use C4::Context; use Koha::Database; diff --git a/t/db_dependent/Koha/Patron/Category.t b/t/db_dependent/Koha/Patron/Category.t index 0d7f42fa38..ad14893669 100755 --- a/t/db_dependent/Koha/Patron/Category.t +++ b/t/db_dependent/Koha/Patron/Category.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/Patron/Consents.t b/t/db_dependent/Koha/Patron/Consents.t index 5120022797..c95517c5ed 100755 --- a/t/db_dependent/Koha/Patron/Consents.t +++ b/t/db_dependent/Koha/Patron/Consents.t @@ -19,7 +19,8 @@ use Modern::Perl; use Data::Dumper qw/Dumper/; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use Test::MockObject; diff --git a/t/db_dependent/Koha/Patron/Images.t b/t/db_dependent/Koha/Patron/Images.t index 86f705d567..c4b45e9fb7 100755 --- a/t/db_dependent/Koha/Patron/Images.t +++ b/t/db_dependent/Koha/Patron/Images.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::Database; use Koha::Patrons; diff --git a/t/db_dependent/Koha/Patron/MessagePreference/Attributes.t b/t/db_dependent/Koha/Patron/MessagePreference/Attributes.t index 2c882578fc..9353c6b8a2 100755 --- a/t/db_dependent/Koha/Patron/MessagePreference/Attributes.t +++ b/t/db_dependent/Koha/Patron/MessagePreference/Attributes.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Koha::Database; diff --git a/t/db_dependent/Koha/Patron/MessagePreference/Transport/Preferences.t b/t/db_dependent/Koha/Patron/MessagePreference/Transport/Preferences.t index f240a6bdd6..18d586caa5 100755 --- a/t/db_dependent/Koha/Patron/MessagePreference/Transport/Preferences.t +++ b/t/db_dependent/Koha/Patron/MessagePreference/Transport/Preferences.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Patron/MessagePreference/Transport/Types.t b/t/db_dependent/Koha/Patron/MessagePreference/Transport/Types.t index 8231fe28e3..67248841f3 100755 --- a/t/db_dependent/Koha/Patron/MessagePreference/Transport/Types.t +++ b/t/db_dependent/Koha/Patron/MessagePreference/Transport/Types.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Koha::Database; diff --git a/t/db_dependent/Koha/Patron/MessagePreference/Transports.t b/t/db_dependent/Koha/Patron/MessagePreference/Transports.t index 000835ecb2..fe42ef2399 100755 --- a/t/db_dependent/Koha/Patron/MessagePreference/Transports.t +++ b/t/db_dependent/Koha/Patron/MessagePreference/Transports.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Patron/MessagePreferences.t b/t/db_dependent/Koha/Patron/MessagePreferences.t index 9e60cbff2e..59566a53e6 100755 --- a/t/db_dependent/Koha/Patron/MessagePreferences.t +++ b/t/db_dependent/Koha/Patron/MessagePreferences.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Patron/Messages.t b/t/db_dependent/Koha/Patron/Messages.t index 31f8cf92b4..8c887bff2d 100755 --- a/t/db_dependent/Koha/Patron/Messages.t +++ b/t/db_dependent/Koha/Patron/Messages.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 14; +use Test::NoWarnings; +use Test::More tests => 15; use C4::Context; use Koha::ActionLogs; diff --git a/t/db_dependent/Koha/Patron/Relationship.t b/t/db_dependent/Koha/Patron/Relationship.t index 495afad126..8fd9768aaf 100755 --- a/t/db_dependent/Koha/Patron/Relationship.t +++ b/t/db_dependent/Koha/Patron/Relationship.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Exception; use Koha::Database; diff --git a/t/db_dependent/Koha/Patron/Restriction.t b/t/db_dependent/Koha/Patron/Restriction.t index 4c95dcf70c..5f6e6cc5df 100755 --- a/t/db_dependent/Koha/Patron/Restriction.t +++ b/t/db_dependent/Koha/Patron/Restriction.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::Exception; use Koha::Database; diff --git a/t/db_dependent/Koha/Patron/Restriction/Type.t b/t/db_dependent/Koha/Patron/Restriction/Type.t index 1caae5d873..0e8f86abf3 100755 --- a/t/db_dependent/Koha/Patron/Restriction/Type.t +++ b/t/db_dependent/Koha/Patron/Restriction/Type.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::Exception; use Koha::Database; diff --git a/t/db_dependent/Koha/Patron_generate_userid.t b/t/db_dependent/Koha/Patron_generate_userid.t index d44753d883..a8fd7696a7 100755 --- a/t/db_dependent/Koha/Patron_generate_userid.t +++ b/t/db_dependent/Koha/Patron_generate_userid.t @@ -20,7 +20,8 @@ use Modern::Perl; use utf8; #use Data::Dumper; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Warn; use Test::MockModule; use Test::MockObject; diff --git a/t/db_dependent/Koha/Patrons.t b/t/db_dependent/Koha/Patrons.t index 994d3fe409..952af86f8c 100755 --- a/t/db_dependent/Koha/Patrons.t +++ b/t/db_dependent/Koha/Patrons.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 44; +use Test::NoWarnings; +use Test::More tests => 45; use Test::Warn; use Test::Exception; use Test::MockModule; diff --git a/t/db_dependent/Koha/Plugins/Account_hooks.t b/t/db_dependent/Koha/Plugins/Account_hooks.t index 4eade79abc..6fde622622 100755 --- a/t/db_dependent/Koha/Plugins/Account_hooks.t +++ b/t/db_dependent/Koha/Plugins/Account_hooks.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Koha/Plugins/Auth/Client.t b/t/db_dependent/Koha/Plugins/Auth/Client.t index e83e717a3f..a50233e759 100755 --- a/t/db_dependent/Koha/Plugins/Auth/Client.t +++ b/t/db_dependent/Koha/Plugins/Auth/Client.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::Exception; use File::Basename; diff --git a/t/db_dependent/Koha/Plugins/BackgroundJob.t b/t/db_dependent/Koha/Plugins/BackgroundJob.t index c5ccd3763f..d0e53a8759 100755 --- a/t/db_dependent/Koha/Plugins/BackgroundJob.t +++ b/t/db_dependent/Koha/Plugins/BackgroundJob.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::MockModule; use File::Basename; diff --git a/t/db_dependent/Koha/Plugins/Barcode_transform_hooks.t b/t/db_dependent/Koha/Plugins/Barcode_transform_hooks.t index 234f7d572f..31b57c762f 100755 --- a/t/db_dependent/Koha/Plugins/Barcode_transform_hooks.t +++ b/t/db_dependent/Koha/Plugins/Barcode_transform_hooks.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Koha/Plugins/Biblio_and_Items_plugin_hooks.t b/t/db_dependent/Koha/Plugins/Biblio_and_Items_plugin_hooks.t index 4464fb407a..6add31dec7 100755 --- a/t/db_dependent/Koha/Plugins/Biblio_and_Items_plugin_hooks.t +++ b/t/db_dependent/Koha/Plugins/Biblio_and_Items_plugin_hooks.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Warn; use File::Basename; diff --git a/t/db_dependent/Koha/Plugins/Broken.t b/t/db_dependent/Koha/Plugins/Broken.t index 6db153db7e..8db1861000 100755 --- a/t/db_dependent/Koha/Plugins/Broken.t +++ b/t/db_dependent/Koha/Plugins/Broken.t @@ -16,7 +16,8 @@ use Modern::Perl; use File::Basename; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Warn; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/Plugins/Circulation_hooks.t b/t/db_dependent/Koha/Plugins/Circulation_hooks.t index 47ac5d58af..69c6302ad5 100755 --- a/t/db_dependent/Koha/Plugins/Circulation_hooks.t +++ b/t/db_dependent/Koha/Plugins/Circulation_hooks.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Koha/Plugins/Holds_hooks.t b/t/db_dependent/Koha/Plugins/Holds_hooks.t index dd4d84755a..11e8afbaea 100755 --- a/t/db_dependent/Koha/Plugins/Holds_hooks.t +++ b/t/db_dependent/Koha/Plugins/Holds_hooks.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Koha/Plugins/Ill_hooks.t b/t/db_dependent/Koha/Plugins/Ill_hooks.t index a2be67380a..ca8af8a9e8 100755 --- a/t/db_dependent/Koha/Plugins/Ill_hooks.t +++ b/t/db_dependent/Koha/Plugins/Ill_hooks.t @@ -16,7 +16,8 @@ use Modern::Perl; use File::Basename; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Plugins/KitchenSink.t b/t/db_dependent/Koha/Plugins/KitchenSink.t index 7393d00ef2..af2ba6ecf9 100755 --- a/t/db_dependent/Koha/Plugins/KitchenSink.t +++ b/t/db_dependent/Koha/Plugins/KitchenSink.t @@ -19,7 +19,8 @@ use Archive::Extract; use File::Temp qw/tempdir/; use FindBin qw($Bin); use Test::MockModule; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Warn; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/Plugins/Message_hooks.t b/t/db_dependent/Koha/Plugins/Message_hooks.t index 6abb2781b0..1e2967c3a8 100755 --- a/t/db_dependent/Koha/Plugins/Message_hooks.t +++ b/t/db_dependent/Koha/Plugins/Message_hooks.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Koha/Plugins/Plugins.t b/t/db_dependent/Koha/Plugins/Plugins.t index 90e505c0d3..bff085d3a1 100755 --- a/t/db_dependent/Koha/Plugins/Plugins.t +++ b/t/db_dependent/Koha/Plugins/Plugins.t @@ -24,7 +24,8 @@ use File::Temp qw( tempdir tempfile ); use FindBin qw($Bin); use Module::Load::Conditional qw(can_load); use Test::MockModule; -use Test::More tests => 18; +use Test::NoWarnings; +use Test::More tests => 19; use Test::Warn; use C4::Context; diff --git a/t/db_dependent/Koha/Plugins/TemplateIncludePathHook.t b/t/db_dependent/Koha/Plugins/TemplateIncludePathHook.t index 9ac1540967..2dfa24624d 100755 --- a/t/db_dependent/Koha/Plugins/TemplateIncludePathHook.t +++ b/t/db_dependent/Koha/Plugins/TemplateIncludePathHook.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Koha/Plugins/Transform_prepared_letter_hook.t b/t/db_dependent/Koha/Plugins/Transform_prepared_letter_hook.t index 060fd5cfc7..f951467bc0 100755 --- a/t/db_dependent/Koha/Plugins/Transform_prepared_letter_hook.t +++ b/t/db_dependent/Koha/Plugins/Transform_prepared_letter_hook.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Koha/Plugins/authority_hooks.t b/t/db_dependent/Koha/Plugins/authority_hooks.t index be0b12c491..42ee4cd964 100755 --- a/t/db_dependent/Koha/Plugins/authority_hooks.t +++ b/t/db_dependent/Koha/Plugins/authority_hooks.t @@ -17,7 +17,8 @@ use Modern::Perl; use MARC::Record; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::Warn; use File::Basename; diff --git a/t/db_dependent/Koha/Policy/Holds.t b/t/db_dependent/Koha/Policy/Holds.t index fc54c886f6..c5a131ab7c 100755 --- a/t/db_dependent/Koha/Policy/Holds.t +++ b/t/db_dependent/Koha/Policy/Holds.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/Policy/Patrons/Cardnumber.t b/t/db_dependent/Koha/Policy/Patrons/Cardnumber.t index 10c55832f8..516a0b9a65 100755 --- a/t/db_dependent/Koha/Policy/Patrons/Cardnumber.t +++ b/t/db_dependent/Koha/Policy/Patrons/Cardnumber.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Koha::Database; use Koha::Policy::Patrons::Cardnumber; diff --git a/t/db_dependent/Koha/Preservation/Processings.t b/t/db_dependent/Koha/Preservation/Processings.t index 2c60173f0d..84ebd50fc7 100755 --- a/t/db_dependent/Koha/Preservation/Processings.t +++ b/t/db_dependent/Koha/Preservation/Processings.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Exception; use Test::Warn; diff --git a/t/db_dependent/Koha/Preservation/Trains.t b/t/db_dependent/Koha/Preservation/Trains.t index 7b6f71a5a1..9a2e3a76fd 100755 --- a/t/db_dependent/Koha/Preservation/Trains.t +++ b/t/db_dependent/Koha/Preservation/Trains.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Exception; use Test::Warn; diff --git a/t/db_dependent/Koha/PseudonymizedTransaction.t b/t/db_dependent/Koha/PseudonymizedTransaction.t index 7a92a14a77..11e247f6d0 100755 --- a/t/db_dependent/Koha/PseudonymizedTransaction.t +++ b/t/db_dependent/Koha/PseudonymizedTransaction.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Exception; diff --git a/t/db_dependent/Koha/Quotes.t b/t/db_dependent/Koha/Quotes.t index 0ecd7d85f7..40990c1701 100755 --- a/t/db_dependent/Koha/Quotes.t +++ b/t/db_dependent/Koha/Quotes.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 14; +use Test::NoWarnings; +use Test::More tests => 15; use Koha::Database; use Koha::DateUtils qw(dt_from_string); diff --git a/t/db_dependent/Koha/REST/Plugin/Auth/IdP.t b/t/db_dependent/Koha/REST/Plugin/Auth/IdP.t index 48325367ad..0420928ec9 100755 --- a/t/db_dependent/Koha/REST/Plugin/Auth/IdP.t +++ b/t/db_dependent/Koha/REST/Plugin/Auth/IdP.t @@ -67,7 +67,8 @@ post '/start_session' => sub { } }; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/REST/Plugin/Objects.t b/t/db_dependent/Koha/REST/Plugin/Objects.t index 25a2bce9af..564e5a8b9e 100755 --- a/t/db_dependent/Koha/REST/Plugin/Objects.t +++ b/t/db_dependent/Koha/REST/Plugin/Objects.t @@ -140,7 +140,8 @@ get '/cities/:city_id/rs' => sub { }; # The tests -use Test::More tests => 18; +use Test::NoWarnings; +use Test::More tests => 19; use Test::Mojo; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/REST/Plugin/Pagination.t b/t/db_dependent/Koha/REST/Plugin/Pagination.t index 5e8a4a3449..9f95dfa6ba 100755 --- a/t/db_dependent/Koha/REST/Plugin/Pagination.t +++ b/t/db_dependent/Koha/REST/Plugin/Pagination.t @@ -86,7 +86,8 @@ get '/dbic_merge_pagination' => sub { # The tests -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t b/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t index df9553065b..232cf28ac1 100755 --- a/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t +++ b/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::Mojo; use Test::Warn; use Test::MockModule; diff --git a/t/db_dependent/Koha/REST/V1.t b/t/db_dependent/Koha/REST/V1.t index fc333a0814..78533fda47 100755 --- a/t/db_dependent/Koha/REST/V1.t +++ b/t/db_dependent/Koha/REST/V1.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/Koha/Ratings.t b/t/db_dependent/Koha/Ratings.t index 664a48133f..8620bb5292 100755 --- a/t/db_dependent/Koha/Ratings.t +++ b/t/db_dependent/Koha/Ratings.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Koha::Database; use Koha::Rating; diff --git a/t/db_dependent/Koha/Recall.t b/t/db_dependent/Koha/Recall.t index 4d6eff783e..0d13137fb8 100755 --- a/t/db_dependent/Koha/Recall.t +++ b/t/db_dependent/Koha/Recall.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 27; +use Test::NoWarnings; +use Test::More tests => 28; use t::lib::Dates; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/Recalls.t b/t/db_dependent/Koha/Recalls.t index dffc85f77f..a519aba53a 100755 --- a/t/db_dependent/Koha/Recalls.t +++ b/t/db_dependent/Koha/Recalls.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 23; +use Test::NoWarnings; +use Test::More tests => 24; use t::lib::Dates; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/RecordSource.t b/t/db_dependent/Koha/RecordSource.t index 5a0bba3212..3a15736acf 100755 --- a/t/db_dependent/Koha/RecordSource.t +++ b/t/db_dependent/Koha/RecordSource.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; diff --git a/t/db_dependent/Koha/Reports.t b/t/db_dependent/Koha/Reports.t index 19bee5bd27..28a9eb9792 100755 --- a/t/db_dependent/Koha/Reports.t +++ b/t/db_dependent/Koha/Reports.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use Koha::Report; use Koha::Reports; diff --git a/t/db_dependent/Koha/Reviews.t b/t/db_dependent/Koha/Reviews.t index 0c8dcdc9c4..7f015ab351 100755 --- a/t/db_dependent/Koha/Reviews.t +++ b/t/db_dependent/Koha/Reviews.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use Koha::Patrons; use Koha::Reviews; diff --git a/t/db_dependent/Koha/SMS_Providers.t b/t/db_dependent/Koha/SMS_Providers.t index a469d77649..0396b6dd5c 100755 --- a/t/db_dependent/Koha/SMS_Providers.t +++ b/t/db_dependent/Koha/SMS_Providers.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Koha::Database; use Koha::SMS::Provider; diff --git a/t/db_dependent/Koha/SMTP/Server.t b/t/db_dependent/Koha/SMTP/Server.t index bb84b8da6a..34b96cad59 100755 --- a/t/db_dependent/Koha/SMTP/Server.t +++ b/t/db_dependent/Koha/SMTP/Server.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::Exception; use Test::Warn; diff --git a/t/db_dependent/Koha/SMTP/Servers.t b/t/db_dependent/Koha/SMTP/Servers.t index b3506b76b1..4d80ea1466 100755 --- a/t/db_dependent/Koha/SMTP/Servers.t +++ b/t/db_dependent/Koha/SMTP/Servers.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::SMTP::Servers; diff --git a/t/db_dependent/Koha/SearchEngine/Elasticsearch/Indexer.t b/t/db_dependent/Koha/SearchEngine/Elasticsearch/Indexer.t index ee467654d2..a7740361ba 100755 --- a/t/db_dependent/Koha/SearchEngine/Elasticsearch/Indexer.t +++ b/t/db_dependent/Koha/SearchEngine/Elasticsearch/Indexer.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use Test::Warn; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t b/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t index ca0e3666b6..8f1f0c72cd 100755 --- a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t +++ b/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t @@ -22,7 +22,8 @@ use Test::Exception; use Test::Warn; use t::lib::Mocks; use t::lib::TestBuilder; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use List::Util qw( all ); diff --git a/t/db_dependent/Koha/SearchEngine/Elasticsearch/Reset.t b/t/db_dependent/Koha/SearchEngine/Elasticsearch/Reset.t index 64a3874081..bc37bf7502 100755 --- a/t/db_dependent/Koha/SearchEngine/Elasticsearch/Reset.t +++ b/t/db_dependent/Koha/SearchEngine/Elasticsearch/Reset.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use Test::MockModule; use Koha::Database; diff --git a/t/db_dependent/Koha/SearchEngine/Indexer.t b/t/db_dependent/Koha/SearchEngine/Indexer.t index 0240935179..cf0ed9e0ce 100755 --- a/t/db_dependent/Koha/SearchEngine/Indexer.t +++ b/t/db_dependent/Koha/SearchEngine/Indexer.t @@ -4,7 +4,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::Warn; use MARC::Field; diff --git a/t/db_dependent/Koha/SearchEngine/Search.t b/t/db_dependent/Koha/SearchEngine/Search.t index e3780b34eb..2932363744 100755 --- a/t/db_dependent/Koha/SearchEngine/Search.t +++ b/t/db_dependent/Koha/SearchEngine/Search.t @@ -4,7 +4,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use MARC::Field; use MARC::Record; diff --git a/t/db_dependent/Koha/SearchEngine/Zebra/QueryBuilder.t b/t/db_dependent/Koha/SearchEngine/Zebra/QueryBuilder.t index df8cfce77f..b9ae8e68e0 100755 --- a/t/db_dependent/Koha/SearchEngine/Zebra/QueryBuilder.t +++ b/t/db_dependent/Koha/SearchEngine/Zebra/QueryBuilder.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use t::lib::Mocks; use t::lib::TestBuilder; use Test::MockModule; diff --git a/t/db_dependent/Koha/SearchField.t b/t/db_dependent/Koha/SearchField.t index bf25b396f2..30d03c2577 100755 --- a/t/db_dependent/Koha/SearchField.t +++ b/t/db_dependent/Koha/SearchField.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use Koha::Database; use Koha::SearchFields; diff --git a/t/db_dependent/Koha/SearchFilters.t b/t/db_dependent/Koha/SearchFilters.t index 81a304ba27..9dd3287c13 100755 --- a/t/db_dependent/Koha/SearchFilters.t +++ b/t/db_dependent/Koha/SearchFilters.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::Database; use Koha::SearchFilters; diff --git a/t/db_dependent/Koha/Session.t b/t/db_dependent/Koha/Session.t index e9cce064c3..90f9ba94ba 100755 --- a/t/db_dependent/Koha/Session.t +++ b/t/db_dependent/Koha/Session.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use t::lib::TestBuilder; use C4::Auth; diff --git a/t/db_dependent/Koha/SharedContent.t b/t/db_dependent/Koha/SharedContent.t index fab02d4170..12ff1f4a11 100755 --- a/t/db_dependent/Koha/SharedContent.t +++ b/t/db_dependent/Koha/SharedContent.t @@ -23,7 +23,8 @@ use t::lib::TestBuilder; use t::lib::Mocks; use Test::MockModule; use Test::MockObject; -use Test::More tests => 45; +use Test::NoWarnings; +use Test::More tests => 46; use Koha::Database; use Koha::Patrons; use Koha::Subscriptions; diff --git a/t/db_dependent/Koha/Statistic.t b/t/db_dependent/Koha/Statistic.t index 1146c3330d..e096f614d9 100755 --- a/t/db_dependent/Koha/Statistic.t +++ b/t/db_dependent/Koha/Statistic.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::DateUtils qw(dt_from_string); use Koha::Statistics; diff --git a/t/db_dependent/Koha/Statistics.t b/t/db_dependent/Koha/Statistics.t index 30b6e571cf..60fb2f955b 100755 --- a/t/db_dependent/Koha/Statistics.t +++ b/t/db_dependent/Koha/Statistics.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::Exception; use C4::Context; diff --git a/t/db_dependent/Koha/Subscription.t b/t/db_dependent/Koha/Subscription.t index e32f871bf5..4211c1af59 100755 --- a/t/db_dependent/Koha/Subscription.t +++ b/t/db_dependent/Koha/Subscription.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; use Koha::Database; use Koha::Subscription; diff --git a/t/db_dependent/Koha/Subscription/Numberpatterns.t b/t/db_dependent/Koha/Subscription/Numberpatterns.t index 6aa26c4f40..af15e657b5 100755 --- a/t/db_dependent/Koha/Subscription/Numberpatterns.t +++ b/t/db_dependent/Koha/Subscription/Numberpatterns.t @@ -20,7 +20,8 @@ use Modern::Perl; use t::lib::TestBuilder; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Koha::Database; use_ok('Koha::Subscription::Numberpatterns'); diff --git a/t/db_dependent/Koha/Subscription/Routinglists.t b/t/db_dependent/Koha/Subscription/Routinglists.t index 1eff86ca54..6ac8a52f31 100755 --- a/t/db_dependent/Koha/Subscription/Routinglists.t +++ b/t/db_dependent/Koha/Subscription/Routinglists.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::TestBuilder; use C4::Biblio; diff --git a/t/db_dependent/Koha/Suggestion.t b/t/db_dependent/Koha/Suggestion.t index 1de342436e..47dab42f7e 100755 --- a/t/db_dependent/Koha/Suggestion.t +++ b/t/db_dependent/Koha/Suggestion.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::Suggestions; diff --git a/t/db_dependent/Koha/Suggestions.t b/t/db_dependent/Koha/Suggestions.t index 1254248e43..11516ee570 100755 --- a/t/db_dependent/Koha/Suggestions.t +++ b/t/db_dependent/Koha/Suggestions.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 11; +use Test::NoWarnings; +use Test::More tests => 12; use Test::Exception; use Koha::Suggestions; diff --git a/t/db_dependent/Koha/Tags.t b/t/db_dependent/Koha/Tags.t index a1a3939fd7..b8a730a11d 100755 --- a/t/db_dependent/Koha/Tags.t +++ b/t/db_dependent/Koha/Tags.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Tags/Approvals.t b/t/db_dependent/Koha/Tags/Approvals.t index dc2a438a0e..108043d1f9 100755 --- a/t/db_dependent/Koha/Tags/Approvals.t +++ b/t/db_dependent/Koha/Tags/Approvals.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Tags/Indexes.t b/t/db_dependent/Koha/Tags/Indexes.t index 770bee33b6..517d238288 100755 --- a/t/db_dependent/Koha/Tags/Indexes.t +++ b/t/db_dependent/Koha/Tags/Indexes.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Template/Plugin/Asset.t b/t/db_dependent/Koha/Template/Plugin/Asset.t index 0d507ad135..3646c2e3a1 100755 --- a/t/db_dependent/Koha/Template/Plugin/Asset.t +++ b/t/db_dependent/Koha/Template/Plugin/Asset.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 16; +use Test::NoWarnings; +use Test::More tests => 17; use Template; use Test::MockModule; diff --git a/t/db_dependent/Koha/Template/Plugin/Branches.t b/t/db_dependent/Koha/Template/Plugin/Branches.t index 3a7cad98ec..7ecb81daaf 100755 --- a/t/db_dependent/Koha/Template/Plugin/Branches.t +++ b/t/db_dependent/Koha/Template/Plugin/Branches.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Template/Plugin/CirculationRules.t b/t/db_dependent/Koha/Template/Plugin/CirculationRules.t index a358da3d3f..d082329d31 100755 --- a/t/db_dependent/Koha/Template/Plugin/CirculationRules.t +++ b/t/db_dependent/Koha/Template/Plugin/CirculationRules.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use C4::Context; use C4::Circulation qw(AddIssue); diff --git a/t/db_dependent/Koha/Template/Plugin/ClassSources.t b/t/db_dependent/Koha/Template/Plugin/ClassSources.t index d897838b7d..0ca1b26b5b 100755 --- a/t/db_dependent/Koha/Template/Plugin/ClassSources.t +++ b/t/db_dependent/Koha/Template/Plugin/ClassSources.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/Template/Plugin/ExtendedAttributeTypes.t b/t/db_dependent/Koha/Template/Plugin/ExtendedAttributeTypes.t index 8ba60d8996..419fce09f5 100755 --- a/t/db_dependent/Koha/Template/Plugin/ExtendedAttributeTypes.t +++ b/t/db_dependent/Koha/Template/Plugin/ExtendedAttributeTypes.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use C4::Context; use Koha::Database; diff --git a/t/db_dependent/Koha/Template/Plugin/ItemTypes.t b/t/db_dependent/Koha/Template/Plugin/ItemTypes.t index 59726397e5..c3f3332fb0 100755 --- a/t/db_dependent/Koha/Template/Plugin/ItemTypes.t +++ b/t/db_dependent/Koha/Template/Plugin/ItemTypes.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; use C4::Context; use Koha::Database; diff --git a/t/db_dependent/Koha/Template/Plugin/JSConsents.t b/t/db_dependent/Koha/Template/Plugin/JSConsents.t index 27428f0bbe..3dc1da0ede 100755 --- a/t/db_dependent/Koha/Template/Plugin/JSConsents.t +++ b/t/db_dependent/Koha/Template/Plugin/JSConsents.t @@ -5,7 +5,8 @@ use Modern::Perl; use C4::Context; use Test::MockModule; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use t::lib::Mocks; BEGIN { diff --git a/t/db_dependent/Koha/Template/Plugin/KohaPlugins.t b/t/db_dependent/Koha/Template/Plugin/KohaPlugins.t index 4e34e60288..d358b5ba7c 100755 --- a/t/db_dependent/Koha/Template/Plugin/KohaPlugins.t +++ b/t/db_dependent/Koha/Template/Plugin/KohaPlugins.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 18; +use Test::NoWarnings; +use Test::More tests => 19; use Test::Warn; use CGI; use File::Basename; diff --git a/t/db_dependent/Koha/Template/Plugin/Notices.t b/t/db_dependent/Koha/Template/Plugin/Notices.t index 7000c1ac5a..13f8f6d618 100755 --- a/t/db_dependent/Koha/Template/Plugin/Notices.t +++ b/t/db_dependent/Koha/Template/Plugin/Notices.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use C4::Context; use Koha::Database; diff --git a/t/db_dependent/Koha/Template/Plugin/Registers.t b/t/db_dependent/Koha/Template/Plugin/Registers.t index 9c361bde70..ba9e40093e 100755 --- a/t/db_dependent/Koha/Template/Plugin/Registers.t +++ b/t/db_dependent/Koha/Template/Plugin/Registers.t @@ -17,7 +17,8 @@ # with Koha; if not, see . use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/Template/Plugin/TablesSettings.t b/t/db_dependent/Koha/Template/Plugin/TablesSettings.t index 0aa04fa6de..c1b18718f7 100755 --- a/t/db_dependent/Koha/Template/Plugin/TablesSettings.t +++ b/t/db_dependent/Koha/Template/Plugin/TablesSettings.t @@ -5,7 +5,8 @@ use Modern::Perl; use C4::Context; use Test::MockModule; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use t::lib::Mocks; BEGIN { diff --git a/t/db_dependent/Koha/Ticket.t b/t/db_dependent/Koha/Ticket.t index adee018514..90e9833514 100755 --- a/t/db_dependent/Koha/Ticket.t +++ b/t/db_dependent/Koha/Ticket.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/Ticket/Update.t b/t/db_dependent/Koha/Ticket/Update.t index ec33fa89fc..bf0754e457 100755 --- a/t/db_dependent/Koha/Ticket/Update.t +++ b/t/db_dependent/Koha/Ticket/Update.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use t::lib::TestBuilder; use Koha::Database; diff --git a/t/db_dependent/Koha/UI/Form/Builder/Biblio.t b/t/db_dependent/Koha/UI/Form/Builder/Biblio.t index b331d06b37..ba28db5455 100755 --- a/t/db_dependent/Koha/UI/Form/Builder/Biblio.t +++ b/t/db_dependent/Koha/UI/Form/Builder/Biblio.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use Test::MockModule; use C4::ClassSource; diff --git a/t/db_dependent/Koha/UI/Form/Builder/Item.t b/t/db_dependent/Koha/UI/Form/Builder/Item.t index 251287a530..1e2131c276 100755 --- a/t/db_dependent/Koha/UI/Form/Builder/Item.t +++ b/t/db_dependent/Koha/UI/Form/Builder/Item.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; use Test::MockModule; use Data::Dumper qw( Dumper ); use utf8; diff --git a/t/db_dependent/Koha/UI/Form/Builder/Item/itemtypes-default.t b/t/db_dependent/Koha/UI/Form/Builder/Item/itemtypes-default.t index a5bfe87f31..fb409fd18c 100755 --- a/t/db_dependent/Koha/UI/Form/Builder/Item/itemtypes-default.t +++ b/t/db_dependent/Koha/UI/Form/Builder/Item/itemtypes-default.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Koha::Database; use Koha::UI::Form::Builder::Item; diff --git a/t/db_dependent/Koha/Virtualshelf.t b/t/db_dependent/Koha/Virtualshelf.t index fef044292e..28362f4e03 100755 --- a/t/db_dependent/Koha/Virtualshelf.t +++ b/t/db_dependent/Koha/Virtualshelf.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Exception; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/Virtualshelves.t b/t/db_dependent/Koha/Virtualshelves.t index 20d2454c99..d5af37bd86 100755 --- a/t/db_dependent/Koha/Virtualshelves.t +++ b/t/db_dependent/Koha/Virtualshelves.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Exception; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/XSLT/Base.t b/t/db_dependent/Koha/XSLT/Base.t index a13f109554..e7560adf55 100755 --- a/t/db_dependent/Koha/XSLT/Base.t +++ b/t/db_dependent/Koha/XSLT/Base.t @@ -20,7 +20,8 @@ use Modern::Perl; use File::Temp qw/tempfile/; -use Test::More tests => 33; +use Test::NoWarnings; +use Test::More tests => 34; use Test::Warn; use Koha::XSLT::Base; diff --git a/t/db_dependent/Koha/XSLT/Security.t b/t/db_dependent/Koha/XSLT/Security.t index 50a47c31ce..aff7ee083a 100755 --- a/t/db_dependent/Koha/XSLT/Security.t +++ b/t/db_dependent/Koha/XSLT/Security.t @@ -19,7 +19,8 @@ use Modern::Perl; use File::Temp qw/tempfile/; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use Test::Warn; use Koha::XSLT::Base; diff --git a/t/db_dependent/Koha/Z3950Responder/GenericSession.t b/t/db_dependent/Koha/Z3950Responder/GenericSession.t index 74d0e9fd92..9786b798e3 100755 --- a/t/db_dependent/Koha/Z3950Responder/GenericSession.t +++ b/t/db_dependent/Koha/Z3950Responder/GenericSession.t @@ -3,7 +3,8 @@ use Modern::Perl; use utf8; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::WWW::Mechanize; use t::lib::Mocks qw(mock_preference); diff --git a/t/db_dependent/Koha/Z3950Responder/Session.t b/t/db_dependent/Koha/Z3950Responder/Session.t index f6e7c65f95..e36c7ef039 100755 --- a/t/db_dependent/Koha/Z3950Responder/Session.t +++ b/t/db_dependent/Koha/Z3950Responder/Session.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use t::lib::TestBuilder; use C4::Items qw( GetMarcItem ); diff --git a/t/db_dependent/Koha/Z3950Responder/Session2.t b/t/db_dependent/Koha/Z3950Responder/Session2.t index 5912d8ff2f..767a5ea87f 100755 --- a/t/db_dependent/Koha/Z3950Responder/Session2.t +++ b/t/db_dependent/Koha/Z3950Responder/Session2.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use t::lib::TestBuilder; use C4::Items qw( GetMarcItem ); diff --git a/t/db_dependent/Koha/Z3950Responder/ZebraSession.t b/t/db_dependent/Koha/Z3950Responder/ZebraSession.t index 70e38f09d1..ff220067ae 100755 --- a/t/db_dependent/Koha/Z3950Responder/ZebraSession.t +++ b/t/db_dependent/Koha/Z3950Responder/ZebraSession.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::MockObject; use t::lib::Mocks qw(mock_preference); diff --git a/t/db_dependent/Koha/Z3950Servers.t b/t/db_dependent/Koha/Z3950Servers.t index 6f6dbd81c3..e80c50004b 100755 --- a/t/db_dependent/Koha/Z3950Servers.t +++ b/t/db_dependent/Koha/Z3950Servers.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Exception; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha_Database.t b/t/db_dependent/Koha_Database.t index dd51feb707..242f14184f 100755 --- a/t/db_dependent/Koha_Database.t +++ b/t/db_dependent/Koha_Database.t @@ -4,7 +4,8 @@ use Modern::Perl; use utf8; -use Test::More tests => 9; +use Test::NoWarnings; +use Test::More tests => 10; BEGIN { use_ok('Koha::Database'); diff --git a/t/db_dependent/Koha_Elasticsearch.t b/t/db_dependent/Koha_Elasticsearch.t index 63402d7ccc..c4b73eaf33 100755 --- a/t/db_dependent/Koha_Elasticsearch.t +++ b/t/db_dependent/Koha_Elasticsearch.t @@ -15,7 +15,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::MockModule; use t::lib::Mocks; diff --git a/t/db_dependent/Koha_ExternalContent_OverDrive.t b/t/db_dependent/Koha_ExternalContent_OverDrive.t index d8c5c97289..c34eb99f7c 100755 --- a/t/db_dependent/Koha_ExternalContent_OverDrive.t +++ b/t/db_dependent/Koha_ExternalContent_OverDrive.t @@ -2,6 +2,7 @@ use Modern::Perl; +use Test::NoWarnings; use Test::More; use Test::MockModule; use t::lib::Mocks; diff --git a/t/db_dependent/Koha_MetadataRecord_Authority.t b/t/db_dependent/Koha_MetadataRecord_Authority.t index 88315524c0..70322e101f 100755 --- a/t/db_dependent/Koha_MetadataRecord_Authority.t +++ b/t/db_dependent/Koha_MetadataRecord_Authority.t @@ -19,7 +19,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use MARC::File::XML; diff --git a/t/db_dependent/Koha_Misc_Files.t b/t/db_dependent/Koha_Misc_Files.t index 814a306426..f73aa68bc6 100755 --- a/t/db_dependent/Koha_Misc_Files.t +++ b/t/db_dependent/Koha_Misc_Files.t @@ -6,7 +6,8 @@ use Modern::Perl; use C4::Context; use Koha::Database; -use Test::More tests => 30; +use Test::NoWarnings; +use Test::More tests => 31; BEGIN { use_ok('Koha::Misc::Files'); diff --git a/t/db_dependent/Labels/t_Batch.t b/t/db_dependent/Labels/t_Batch.t index 61a3710129..48b4e1b372 100755 --- a/t/db_dependent/Labels/t_Batch.t +++ b/t/db_dependent/Labels/t_Batch.t @@ -20,7 +20,8 @@ use Modern::Perl; -use Test::More tests => 25; +use Test::NoWarnings; +use Test::More tests => 26; use MARC::Record; use MARC::Field; diff --git a/t/db_dependent/Labels/t_Label.t b/t/db_dependent/Labels/t_Label.t index 524baf3779..cd65049688 100755 --- a/t/db_dependent/Labels/t_Label.t +++ b/t/db_dependent/Labels/t_Label.t @@ -20,7 +20,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Labels/t_Layout.t b/t/db_dependent/Labels/t_Layout.t index 6271f125cd..2f57cd93dc 100755 --- a/t/db_dependent/Labels/t_Layout.t +++ b/t/db_dependent/Labels/t_Layout.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 58; +use Test::NoWarnings; +use Test::More tests => 59; use C4::Context; use Koha::Database; diff --git a/t/db_dependent/Labels/t_Profile.t b/t/db_dependent/Labels/t_Profile.t index 7139c7e4e0..dd1ba8e5a7 100755 --- a/t/db_dependent/Labels/t_Profile.t +++ b/t/db_dependent/Labels/t_Profile.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 27; +use Test::NoWarnings; +use Test::More tests => 28; use C4::Context; use Koha::Database; diff --git a/t/db_dependent/Labels/t_Template.t b/t/db_dependent/Labels/t_Template.t index 98a04d30c9..28a71ee74a 100755 --- a/t/db_dependent/Labels/t_Template.t +++ b/t/db_dependent/Labels/t_Template.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 54; +use Test::NoWarnings; +use Test::More tests => 55; use C4::Context; use Koha::Database; diff --git a/t/db_dependent/Languages.t b/t/db_dependent/Languages.t index 3a5967ee7d..4f7afd26ef 100755 --- a/t/db_dependent/Languages.t +++ b/t/db_dependent/Languages.t @@ -6,7 +6,8 @@ use utf8; use Modern::Perl; use Encode; -use Test::More tests => 22; +use Test::NoWarnings; +use Test::More tests => 23; use Test::Deep; use Test::Exception; use List::Util qw(first); diff --git a/t/db_dependent/Letters/GetLetterTemplates.t b/t/db_dependent/Letters/GetLetterTemplates.t index 31a8571150..8455934459 100755 --- a/t/db_dependent/Letters/GetLetterTemplates.t +++ b/t/db_dependent/Letters/GetLetterTemplates.t @@ -1,5 +1,6 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use C4::Context; use C4::Letters qw( GetLetterTemplates ); diff --git a/t/db_dependent/Letters/GetLettersAvailableForALibrary.t b/t/db_dependent/Letters/GetLettersAvailableForALibrary.t index 3a49e7d68e..b290bb1c6b 100755 --- a/t/db_dependent/Letters/GetLettersAvailableForALibrary.t +++ b/t/db_dependent/Letters/GetLettersAvailableForALibrary.t @@ -1,5 +1,6 @@ use Modern::Perl; -use Test::More tests => 19; +use Test::NoWarnings; +use Test::More tests => 20; use C4::Context; use C4::Letters qw( GetLetters GetLettersAvailableForALibrary DelLetter ); diff --git a/t/db_dependent/Letters/TemplateToolkit.t b/t/db_dependent/Letters/TemplateToolkit.t index 35c836a97c..a475f62dc7 100755 --- a/t/db_dependent/Letters/TemplateToolkit.t +++ b/t/db_dependent/Letters/TemplateToolkit.t @@ -19,7 +19,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 32; +use Test::NoWarnings; +use Test::More tests => 33; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/LibraryGroups.t b/t/db_dependent/LibraryGroups.t index 00e699bd95..91460c2408 100755 --- a/t/db_dependent/LibraryGroups.t +++ b/t/db_dependent/LibraryGroups.t @@ -4,7 +4,8 @@ use Modern::Perl; use List::MoreUtils 'any'; -use Test::More tests => 21; +use Test::NoWarnings; +use Test::More tests => 22; use t::lib::TestBuilder; use Koha::Database; diff --git a/t/db_dependent/Linker_Default.t b/t/db_dependent/Linker_Default.t index 9a878da8dc..df842065da 100755 --- a/t/db_dependent/Linker_Default.t +++ b/t/db_dependent/Linker_Default.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use MARC::Record; use MARC::Field; diff --git a/t/db_dependent/Linker_FirstMatch.t b/t/db_dependent/Linker_FirstMatch.t index d4d211a9dc..5a06d9c138 100755 --- a/t/db_dependent/Linker_FirstMatch.t +++ b/t/db_dependent/Linker_FirstMatch.t @@ -19,7 +19,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use MARC::Record; use MARC::Field; diff --git a/t/db_dependent/Log.t b/t/db_dependent/Log.t index 2aaad4bdd0..a2de4e79b0 100755 --- a/t/db_dependent/Log.t +++ b/t/db_dependent/Log.t @@ -16,7 +16,8 @@ use Modern::Perl; use Data::Dumper qw( Dumper ); -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use C4::Context; use C4::Log qw( logaction cronlogaction ); diff --git a/t/db_dependent/MarcModificationTemplates.t b/t/db_dependent/MarcModificationTemplates.t index 35adf6919d..ff4b9674bb 100755 --- a/t/db_dependent/MarcModificationTemplates.t +++ b/t/db_dependent/MarcModificationTemplates.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 129; +use Test::NoWarnings; +use Test::More tests => 130; use Koha::Database; use Koha::SimpleMARC; diff --git a/t/db_dependent/Matcher.t b/t/db_dependent/Matcher.t index cda2dcbea4..d8848b7825 100755 --- a/t/db_dependent/Matcher.t +++ b/t/db_dependent/Matcher.t @@ -17,7 +17,8 @@ use Modern::Perl; use MARC::Record; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::Warn; use t::lib::TestBuilder; diff --git a/t/db_dependent/Members.t b/t/db_dependent/Members.t index 8b4c38fd54..b09a802c57 100755 --- a/t/db_dependent/Members.t +++ b/t/db_dependent/Members.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 50; +use Test::NoWarnings; +use Test::More tests => 51; use Test::MockModule; use Test::Exception; diff --git a/t/db_dependent/Members/IssueSlip.t b/t/db_dependent/Members/IssueSlip.t index bbf4bb3a7d..a112974c6a 100755 --- a/t/db_dependent/Members/IssueSlip.t +++ b/t/db_dependent/Members/IssueSlip.t @@ -19,7 +19,8 @@ use Modern::Perl; use Data::Dumper; # REMOVEME with diag -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::MockModule; use Test::MockTime qw( set_fixed_time ); use t::lib::TestBuilder; diff --git a/t/db_dependent/Members/Statistics.t b/t/db_dependent/Members/Statistics.t index fc1a62049c..5994ee28e4 100755 --- a/t/db_dependent/Members/Statistics.t +++ b/t/db_dependent/Members/Statistics.t @@ -1,5 +1,6 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; # Please add more tests here !! diff --git a/t/db_dependent/Message.t b/t/db_dependent/Message.t index c100dd5450..f8c444c3e0 100755 --- a/t/db_dependent/Message.t +++ b/t/db_dependent/Message.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use utf8; diff --git a/t/db_dependent/MungeMarcPrice.t b/t/db_dependent/MungeMarcPrice.t index 1a514232af..c85c5a4a4e 100755 --- a/t/db_dependent/MungeMarcPrice.t +++ b/t/db_dependent/MungeMarcPrice.t @@ -4,6 +4,7 @@ use Modern::Perl; use C4::Biblio qw( MungeMarcPrice ); use Koha::Database; use Koha::Acquisition::Currencies; +use Test::NoWarnings; use Test::More; # work around wide character warnings diff --git a/t/db_dependent/OAI/AndSets.t b/t/db_dependent/OAI/AndSets.t index 0489de6457..b529e552f7 100755 --- a/t/db_dependent/OAI/AndSets.t +++ b/t/db_dependent/OAI/AndSets.t @@ -18,7 +18,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use Test::Warn; use MARC::Record; diff --git a/t/db_dependent/OAI/Server.t b/t/db_dependent/OAI/Server.t index 5da76b4f36..6b1c55e427 100755 --- a/t/db_dependent/OAI/Server.t +++ b/t/db_dependent/OAI/Server.t @@ -21,7 +21,8 @@ use Modern::Perl; use Test::Deep qw( cmp_deeply re ); use Test::MockTime qw/set_fixed_time set_relative_time restore_time/; -use Test::More tests => 35; +use Test::NoWarnings; +use Test::More tests => 36; use DateTime; use File::Basename; use File::Spec; diff --git a/t/db_dependent/OAI/Sets.t b/t/db_dependent/OAI/Sets.t index 327643f267..d55ff9d630 100755 --- a/t/db_dependent/OAI/Sets.t +++ b/t/db_dependent/OAI/Sets.t @@ -18,7 +18,8 @@ use Modern::Perl; -use Test::More tests => 153; +use Test::NoWarnings; +use Test::More tests => 154; use Test::MockModule; use Test::Warn; use MARC::Record; diff --git a/t/db_dependent/Passwordrecovery.t b/t/db_dependent/Passwordrecovery.t index 02001a913b..201cb80394 100755 --- a/t/db_dependent/Passwordrecovery.t +++ b/t/db_dependent/Passwordrecovery.t @@ -26,7 +26,8 @@ use Koha::Patrons; use t::lib::TestBuilder; use t::lib::Mocks; -use Test::More tests => 22; +use Test::NoWarnings; +use Test::More tests => 23; use Test::MockModule; use Test::Warn; use Carp; diff --git a/t/db_dependent/Patron/Borrower_Debarments.t b/t/db_dependent/Patron/Borrower_Debarments.t index ae47365a9b..e10e9be859 100755 --- a/t/db_dependent/Patron/Borrower_Debarments.t +++ b/t/db_dependent/Patron/Borrower_Debarments.t @@ -13,7 +13,8 @@ use Koha::ActionLogs; use t::lib::Mocks; use t::lib::TestBuilder; -use Test::More tests => 39; +use Test::NoWarnings; +use Test::More tests => 40; use_ok('Koha::Patron::Debarments'); diff --git a/t/db_dependent/Patron/Borrower_Files.t b/t/db_dependent/Patron/Borrower_Files.t index b0cfc74552..0deff59790 100755 --- a/t/db_dependent/Patron/Borrower_Files.t +++ b/t/db_dependent/Patron/Borrower_Files.t @@ -25,7 +25,8 @@ use Koha::Database; use Koha::Patrons; use t::lib::TestBuilder; -use Test::More tests => 23; +use Test::NoWarnings; +use Test::More tests => 24; use_ok('Koha::Patron::Files'); diff --git a/t/db_dependent/Patron/Borrower_PrevCheckout.t b/t/db_dependent/Patron/Borrower_PrevCheckout.t index 310458d119..369194b727 100755 --- a/t/db_dependent/Patron/Borrower_PrevCheckout.t +++ b/t/db_dependent/Patron/Borrower_PrevCheckout.t @@ -7,7 +7,8 @@ use Koha::Database; use Koha::DateUtils qw( dt_from_string ); use Koha::Patrons; -use Test::More tests => 61; +use Test::NoWarnings; +use Test::More tests => 62; use_ok('Koha::Patron'); diff --git a/t/db_dependent/Patron/Housebound.t b/t/db_dependent/Patron/Housebound.t index b5024bc4df..a1ca3539d6 100755 --- a/t/db_dependent/Patron/Housebound.t +++ b/t/db_dependent/Patron/Housebound.t @@ -6,7 +6,8 @@ use C4::Circulation; use Koha::Database; use Koha::Patrons; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use_ok('Koha::Patron'); diff --git a/t/db_dependent/Patron/HouseboundProfiles.t b/t/db_dependent/Patron/HouseboundProfiles.t index 48e21c94d6..7f17fc9ec7 100755 --- a/t/db_dependent/Patron/HouseboundProfiles.t +++ b/t/db_dependent/Patron/HouseboundProfiles.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Database; use Koha::Patron::HouseboundProfiles; diff --git a/t/db_dependent/Patron/HouseboundRoles.t b/t/db_dependent/Patron/HouseboundRoles.t index 797a2d7437..1f303e6bee 100755 --- a/t/db_dependent/Patron/HouseboundRoles.t +++ b/t/db_dependent/Patron/HouseboundRoles.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Koha::Database; use Koha::Patron::HouseboundRoles; diff --git a/t/db_dependent/Patron/HouseboundVisits.t b/t/db_dependent/Patron/HouseboundVisits.t index 23e8ddca18..704ccd7c5f 100755 --- a/t/db_dependent/Patron/HouseboundVisits.t +++ b/t/db_dependent/Patron/HouseboundVisits.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; use Koha::Database; use Koha::Patron::HouseboundVisits; diff --git a/t/db_dependent/Patron/Messages.t b/t/db_dependent/Patron/Messages.t index 8da4915d10..a6eae564a6 100755 --- a/t/db_dependent/Patron/Messages.t +++ b/t/db_dependent/Patron/Messages.t @@ -15,7 +15,8 @@ # with Koha; if not, see . # use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::Patrons; use Koha::Patron::Messages; diff --git a/t/db_dependent/Patron/Messaging.t b/t/db_dependent/Patron/Messaging.t index 14a1f49164..c761dba96d 100755 --- a/t/db_dependent/Patron/Messaging.t +++ b/t/db_dependent/Patron/Messaging.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::TestBuilder; use t::lib::Mocks; use File::Spec; diff --git a/t/db_dependent/Patron/Relationships.t b/t/db_dependent/Patron/Relationships.t index dacac11bf3..a0af30fa63 100755 --- a/t/db_dependent/Patron/Relationships.t +++ b/t/db_dependent/Patron/Relationships.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 54; +use Test::NoWarnings; +use Test::More tests => 55; use C4::Context; use Koha::Database; diff --git a/t/db_dependent/PatronLists.t b/t/db_dependent/PatronLists.t index b2edc8d8ff..8e2f9a05ef 100755 --- a/t/db_dependent/PatronLists.t +++ b/t/db_dependent/PatronLists.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Patroncards.t b/t/db_dependent/Patroncards.t index 375b20b787..f7e8fc0934 100755 --- a/t/db_dependent/Patroncards.t +++ b/t/db_dependent/Patroncards.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use C4::Patroncards::Layout; use Koha::Database; diff --git a/t/db_dependent/Patrons.t b/t/db_dependent/Patrons.t index 2d93fa7831..1bb3987163 100755 --- a/t/db_dependent/Patrons.t +++ b/t/db_dependent/Patrons.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 18; +use Test::NoWarnings; +use Test::More tests => 19; use Test::Warn; use C4::Context; diff --git a/t/db_dependent/Prices.t b/t/db_dependent/Prices.t index 2b4ade38ac..c98f522bef 100755 --- a/t/db_dependent/Prices.t +++ b/t/db_dependent/Prices.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::MockModule; use t::lib::Mocks; diff --git a/t/db_dependent/Record.t b/t/db_dependent/Record.t index 9c9b237c8e..676d825462 100755 --- a/t/db_dependent/Record.t +++ b/t/db_dependent/Record.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 15; +use Test::NoWarnings; +use Test::More tests => 16; use MARC::Record; use t::lib::Mocks; diff --git a/t/db_dependent/Record/Record.t b/t/db_dependent/Record/Record.t index 495f8e05b1..3091990bbf 100755 --- a/t/db_dependent/Record/Record.t +++ b/t/db_dependent/Record/Record.t @@ -25,7 +25,8 @@ use warnings; use constant WHEREAMI => 't/db_dependent/Record/testrecords'; # specify the number of tests -use Test::More tests => 21; #FIXME Commented out two failing tests +use Test::NoWarnings; +use Test::More tests => 22; #FIXME Commented out two failing tests #use C4::Context; use C4::Record qw( marc2marc marc2marcxml marc2dcxml changeEncoding ); diff --git a/t/db_dependent/Record/marcrecord2csv.t b/t/db_dependent/Record/marcrecord2csv.t index bf3df2101f..0c7254d94e 100755 --- a/t/db_dependent/Record/marcrecord2csv.t +++ b/t/db_dependent/Record/marcrecord2csv.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 13; +use Test::NoWarnings; +use Test::More tests => 14; use Test::MockModule; use MARC::Record; use MARC::Field; diff --git a/t/db_dependent/RecordProcessor_EmbedSeeFromHeadings.t b/t/db_dependent/RecordProcessor_EmbedSeeFromHeadings.t index 9d7b4efc32..48ba21cf60 100755 --- a/t/db_dependent/RecordProcessor_EmbedSeeFromHeadings.t +++ b/t/db_dependent/RecordProcessor_EmbedSeeFromHeadings.t @@ -23,6 +23,7 @@ use File::Spec; use MARC::Record; use Koha::MetadataRecord::Authority; +use Test::NoWarnings; use Test::More; use Test::MockModule; use Test::MockObject; diff --git a/t/db_dependent/Reports.t b/t/db_dependent/Reports.t index 9cf56abef3..5f028e5ff8 100755 --- a/t/db_dependent/Reports.t +++ b/t/db_dependent/Reports.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; BEGIN { use_ok('C4::Reports', qw( GetDelimiterChoices )); diff --git a/t/db_dependent/Reports/Guided.t b/t/db_dependent/Reports/Guided.t index e84ccc2e00..7b33973386 100755 --- a/t/db_dependent/Reports/Guided.t +++ b/t/db_dependent/Reports/Guided.t @@ -20,7 +20,8 @@ use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use Test::Warn; use t::lib::TestBuilder; diff --git a/t/db_dependent/Reserves/AutoUnsuspendReserves.t b/t/db_dependent/Reserves/AutoUnsuspendReserves.t index e1fefc9fd5..d7e0b83b61 100755 --- a/t/db_dependent/Reserves/AutoUnsuspendReserves.t +++ b/t/db_dependent/Reserves/AutoUnsuspendReserves.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/Reserves/GetReserveFee.t b/t/db_dependent/Reserves/GetReserveFee.t index 03029d8333..96d6619bbd 100755 --- a/t/db_dependent/Reserves/GetReserveFee.t +++ b/t/db_dependent/Reserves/GetReserveFee.t @@ -21,7 +21,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::MockModule; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Reserves/MultiplePerRecord.t b/t/db_dependent/Reserves/MultiplePerRecord.t index 56da6d5036..9eb1f9e984 100755 --- a/t/db_dependent/Reserves/MultiplePerRecord.t +++ b/t/db_dependent/Reserves/MultiplePerRecord.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 16; +use Test::NoWarnings; +use Test::More tests => 17; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Reserves/ReserveSlip.t b/t/db_dependent/Reserves/ReserveSlip.t index 664f9a1b0c..972bed2d3a 100755 --- a/t/db_dependent/Reserves/ReserveSlip.t +++ b/t/db_dependent/Reserves/ReserveSlip.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use t::lib::TestBuilder; use C4::Reserves qw( ReserveSlip ); diff --git a/t/db_dependent/RotatingCollections.t b/t/db_dependent/RotatingCollections.t index 855e33897c..4cc2a53383 100755 --- a/t/db_dependent/RotatingCollections.t +++ b/t/db_dependent/RotatingCollections.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 53; +use Test::NoWarnings; +use Test::More tests => 54; use C4::Context; use C4::RotatingCollections qw( AddItemToCollection CreateCollection DeleteCollection GetCollection GetCollectionItemBranches GetCollections GetItemsInCollection RemoveItemFromCollection TransferCollection UpdateCollection isItemInAnyCollection isItemInThisCollection ); use C4::Biblio qw( AddBiblio ); diff --git a/t/db_dependent/SIP/ILS.t b/t/db_dependent/SIP/ILS.t index b0bcdbfd8d..c352290644 100755 --- a/t/db_dependent/SIP/ILS.t +++ b/t/db_dependent/SIP/ILS.t @@ -20,7 +20,8 @@ use Modern::Perl; -use Test::More tests => 15; +use Test::NoWarnings; +use Test::More tests => 16; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/SIP/Message.t b/t/db_dependent/SIP/Message.t index dea011311a..87a80f153b 100755 --- a/t/db_dependent/SIP/Message.t +++ b/t/db_dependent/SIP/Message.t @@ -21,7 +21,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 22; +use Test::NoWarnings; +use Test::More tests => 23; use Test::Exception; use Test::MockObject; use Test::MockModule; diff --git a/t/db_dependent/SIP/Patron.t b/t/db_dependent/SIP/Patron.t index 2c95245ed2..048c173121 100755 --- a/t/db_dependent/SIP/Patron.t +++ b/t/db_dependent/SIP/Patron.t @@ -4,7 +4,8 @@ # This needs to be extended! Your help is appreciated.. use Modern::Perl; -use Test::More tests => 11; +use Test::NoWarnings; +use Test::More tests => 12; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/SIP/SIPServer.t b/t/db_dependent/SIP/SIPServer.t index 8d6d574776..53b943c405 100755 --- a/t/db_dependent/SIP/SIPServer.t +++ b/t/db_dependent/SIP/SIPServer.t @@ -20,7 +20,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Warn; my ( $mockConfig, $mockPrefork ); diff --git a/t/db_dependent/SIP/Transaction.t b/t/db_dependent/SIP/Transaction.t index afdef84fa4..e126816bb1 100755 --- a/t/db_dependent/SIP/Transaction.t +++ b/t/db_dependent/SIP/Transaction.t @@ -4,7 +4,8 @@ # Current state is very rudimentary. Please help to extend it! use Modern::Perl; -use Test::More tests => 19; +use Test::NoWarnings; +use Test::More tests => 20; use Test::Warn; use DateTime; diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t index 00ce65abda..3a38fe6603 100755 --- a/t/db_dependent/Search.t +++ b/t/db_dependent/Search.t @@ -26,7 +26,8 @@ require C4::Context; # work around spurious wide character warnings use open ':std', ':encoding(utf8)'; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::MockModule; use Test::Warn; use t::lib::Mocks; diff --git a/t/db_dependent/Search/History.t b/t/db_dependent/Search/History.t index 4c084e121a..0bd7b16356 100755 --- a/t/db_dependent/Search/History.t +++ b/t/db_dependent/Search/History.t @@ -11,7 +11,8 @@ use t::lib::TestBuilder; use C4::Auth qw( get_session checkauth get_template_and_user ); use Koha::Database; -use Test::More tests => 27; +use Test::NoWarnings; +use Test::More tests => 28; use Test::Warn; use URI::Escape; use List::Util qw( shuffle ); diff --git a/t/db_dependent/Serials.t b/t/db_dependent/Serials.t index 0c9ce3dffe..40003a7ba0 100755 --- a/t/db_dependent/Serials.t +++ b/t/db_dependent/Serials.t @@ -17,7 +17,8 @@ use Koha::Acquisition::Booksellers; use t::lib::Mocks; use t::lib::TestBuilder; use Test::MockModule; -use Test::More tests => 63; +use Test::NoWarnings; +use Test::More tests => 64; BEGIN { use_ok('C4::Serials', qw( updateClaim NewSubscription GetSubscription GetSubscriptionHistoryFromSubscriptionId SearchSubscriptions ModSubscription GetExpirationDate GetSerials GetSerialInformation NewIssue AddItem2Serial DelSubscription GetFullSubscription PrepareSerialsData GetSubscriptionsFromBiblionumber ModSubscriptionHistory GetSerials2 GetLatestSerials GetNextSeq GetSeq CountSubscriptionFromBiblionumber ModSerialStatus findSerialsByStatus HasSubscriptionStrictlyExpired HasSubscriptionExpired GetLateOrMissingIssues check_routing addroutingmember GetNextDate )); diff --git a/t/db_dependent/Serials/Claims.t b/t/db_dependent/Serials/Claims.t index afc3a18e66..7fcd502970 100755 --- a/t/db_dependent/Serials/Claims.t +++ b/t/db_dependent/Serials/Claims.t @@ -1,5 +1,6 @@ use Modern::Perl; -use Test::More tests => 17; +use Test::NoWarnings; +use Test::More tests => 18; use C4::Acquisition; use C4::Budgets qw( AddBudgetPeriod AddBudget ); diff --git a/t/db_dependent/Serials/Frequency.t b/t/db_dependent/Serials/Frequency.t index 02a64f7f99..050d15f1d3 100755 --- a/t/db_dependent/Serials/Frequency.t +++ b/t/db_dependent/Serials/Frequency.t @@ -2,7 +2,8 @@ use C4::Context; use Koha::Database; -use Test::More tests => 27; +use Test::NoWarnings; +use Test::More tests => 28; use Modern::Perl; my $schema = Koha::Database->new->schema; diff --git a/t/db_dependent/Serials/GetFictiveIssueNumber.t b/t/db_dependent/Serials/GetFictiveIssueNumber.t index 5a5e6b0057..5949c06747 100755 --- a/t/db_dependent/Serials/GetFictiveIssueNumber.t +++ b/t/db_dependent/Serials/GetFictiveIssueNumber.t @@ -3,7 +3,8 @@ # This test deals with GetFictiveIssueNumber (from C4::Serials) use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Koha::Database; use C4::Serials qw( GetFictiveIssueNumber GetSubscription ); diff --git a/t/db_dependent/Serials/GetNextDate.t b/t/db_dependent/Serials/GetNextDate.t index 4081dea09a..fa1816f3b4 100755 --- a/t/db_dependent/Serials/GetNextDate.t +++ b/t/db_dependent/Serials/GetNextDate.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 102; +use Test::NoWarnings; +use Test::More tests => 103; use Koha::Database; use C4::Serials qw( GetNextDate ); diff --git a/t/db_dependent/Serials/GetNextSeq.t b/t/db_dependent/Serials/GetNextSeq.t index 270568de60..fa41327705 100755 --- a/t/db_dependent/Serials/GetNextSeq.t +++ b/t/db_dependent/Serials/GetNextSeq.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use C4::Context; -use Test::More tests => 32; +use Test::NoWarnings; +use Test::More tests => 33; use Modern::Perl; use Koha::Database; diff --git a/t/db_dependent/Serials/Numberpattern.t b/t/db_dependent/Serials/Numberpattern.t index 65e1f420f1..d02b8d13cd 100755 --- a/t/db_dependent/Serials/Numberpattern.t +++ b/t/db_dependent/Serials/Numberpattern.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 95; +use Test::NoWarnings; +use Test::More tests => 96; use C4::Context; use Koha::Database; diff --git a/t/db_dependent/Serials/ReNewSubscription.t b/t/db_dependent/Serials/ReNewSubscription.t index 84ab1c01b2..bff5d0b8de 100755 --- a/t/db_dependent/Serials/ReNewSubscription.t +++ b/t/db_dependent/Serials/ReNewSubscription.t @@ -22,7 +22,8 @@ use Modern::Perl; -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; use Test::MockModule; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/Serials/updateClaim.t b/t/db_dependent/Serials/updateClaim.t index 1eed7db318..7ef2774e9a 100755 --- a/t/db_dependent/Serials/updateClaim.t +++ b/t/db_dependent/Serials/updateClaim.t @@ -1,5 +1,6 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use C4::Serials; use Koha::Database; diff --git a/t/db_dependent/Serials_2.t b/t/db_dependent/Serials_2.t index d0a1b7a615..3273edc4cf 100755 --- a/t/db_dependent/Serials_2.t +++ b/t/db_dependent/Serials_2.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 50; +use Test::NoWarnings; +use Test::More tests => 51; use MARC::Record; diff --git a/t/db_dependent/Service.t b/t/db_dependent/Service.t index 497cc1bc7f..97aaa03bf8 100755 --- a/t/db_dependent/Service.t +++ b/t/db_dependent/Service.t @@ -6,7 +6,8 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; BEGIN { use_ok('C4::Service'); diff --git a/t/db_dependent/ShelfBrowser.t b/t/db_dependent/ShelfBrowser.t index 27d37419ad..389ee11665 100755 --- a/t/db_dependent/ShelfBrowser.t +++ b/t/db_dependent/ShelfBrowser.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 74; +use Test::NoWarnings; +use Test::More tests => 75; use List::Util qw( shuffle ); use MARC::Field; use MARC::Record; diff --git a/t/db_dependent/Sitemapper.t b/t/db_dependent/Sitemapper.t index ebf69ce402..575ff8dc2f 100755 --- a/t/db_dependent/Sitemapper.t +++ b/t/db_dependent/Sitemapper.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Carp qw/croak/; use File::Basename; use File::Path; diff --git a/t/db_dependent/SocialData.t b/t/db_dependent/SocialData.t index b0f51c3a3e..88195c7da8 100755 --- a/t/db_dependent/SocialData.t +++ b/t/db_dependent/SocialData.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use t::lib::TestBuilder; diff --git a/t/db_dependent/StockRotationItems.t b/t/db_dependent/StockRotationItems.t index c6b3afee25..ba5e949445 100755 --- a/t/db_dependent/StockRotationItems.t +++ b/t/db_dependent/StockRotationItems.t @@ -29,7 +29,8 @@ use Test::Warn; use t::lib::TestBuilder; use t::lib::Mocks; -use Test::More tests => 9; +use Test::NoWarnings; +use Test::More tests => 10; my $schema = Koha::Database->new->schema; diff --git a/t/db_dependent/StockRotationRotas.t b/t/db_dependent/StockRotationRotas.t index 9d5401f140..4759c50446 100755 --- a/t/db_dependent/StockRotationRotas.t +++ b/t/db_dependent/StockRotationRotas.t @@ -22,7 +22,8 @@ use Modern::Perl; use Koha::Database; use t::lib::TestBuilder; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; my $schema = Koha::Database->new->schema; diff --git a/t/db_dependent/StockRotationStages.t b/t/db_dependent/StockRotationStages.t index ae94473e22..afa49edf7e 100755 --- a/t/db_dependent/StockRotationStages.t +++ b/t/db_dependent/StockRotationStages.t @@ -22,7 +22,8 @@ use Modern::Perl; use Koha::Database; use t::lib::TestBuilder; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; my $schema = Koha::Database->new->schema; diff --git a/t/db_dependent/SuggestionEngine_ExplodedTerms.t b/t/db_dependent/SuggestionEngine_ExplodedTerms.t index 4e310b6a9d..6754f35a4c 100755 --- a/t/db_dependent/SuggestionEngine_ExplodedTerms.t +++ b/t/db_dependent/SuggestionEngine_ExplodedTerms.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Koha::SuggestionEngine; diff --git a/t/db_dependent/Suggestions.t b/t/db_dependent/Suggestions.t index c25a97da7d..09ad198f51 100755 --- a/t/db_dependent/Suggestions.t +++ b/t/db_dependent/Suggestions.t @@ -18,7 +18,8 @@ use Modern::Perl; use DateTime::Duration; -use Test::More tests => 94; +use Test::NoWarnings; +use Test::More tests => 95; use Test::Warn; use t::lib::Mocks; diff --git a/t/db_dependent/TablesSettings.t b/t/db_dependent/TablesSettings.t index 4113cbde26..516cd00293 100755 --- a/t/db_dependent/TablesSettings.t +++ b/t/db_dependent/TablesSettings.t @@ -1,7 +1,8 @@ #!/usr/bin/perl; use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::MockModule; use C4::Context; diff --git a/t/db_dependent/Tags.t b/t/db_dependent/Tags.t index b72ebd7b41..d9757d0214 100755 --- a/t/db_dependent/Tags.t +++ b/t/db_dependent/Tags.t @@ -19,7 +19,8 @@ use Modern::Perl; use utf8; -use Test::More tests => 34; +use Test::NoWarnings; +use Test::More tests => 35; use t::lib::TestBuilder; diff --git a/t/db_dependent/Template/Plugin/AdditionalContents.t b/t/db_dependent/Template/Plugin/AdditionalContents.t index 95c519f0f0..1c4e77e17e 100755 --- a/t/db_dependent/Template/Plugin/AdditionalContents.t +++ b/t/db_dependent/Template/Plugin/AdditionalContents.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use C4::Context; use Koha::Caches; diff --git a/t/db_dependent/Template/Plugin/AuthorisedValues.t b/t/db_dependent/Template/Plugin/AuthorisedValues.t index 722a229f0f..9270ce330d 100755 --- a/t/db_dependent/Template/Plugin/AuthorisedValues.t +++ b/t/db_dependent/Template/Plugin/AuthorisedValues.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use C4::Context; use Koha::Caches; diff --git a/t/db_dependent/Template/Plugin/Branches.t b/t/db_dependent/Template/Plugin/Branches.t index 163696d190..421ed0cb47 100755 --- a/t/db_dependent/Template/Plugin/Branches.t +++ b/t/db_dependent/Template/Plugin/Branches.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use C4::Context; diff --git a/t/db_dependent/Template/Plugin/Categories.t b/t/db_dependent/Template/Plugin/Categories.t index 04580d7912..17bb49fca2 100755 --- a/t/db_dependent/Template/Plugin/Categories.t +++ b/t/db_dependent/Template/Plugin/Categories.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use t::lib::Mocks; use t::lib::TestBuilder; diff --git a/t/db_dependent/Template/Plugin/CirculationRules.t b/t/db_dependent/Template/Plugin/CirculationRules.t index 50b158acee..162983ea6d 100755 --- a/t/db_dependent/Template/Plugin/CirculationRules.t +++ b/t/db_dependent/Template/Plugin/CirculationRules.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use Koha::CirculationRules; diff --git a/t/db_dependent/Template/Plugin/Frameworks.t b/t/db_dependent/Template/Plugin/Frameworks.t index be3a16935a..9aef7ee906 100755 --- a/t/db_dependent/Template/Plugin/Frameworks.t +++ b/t/db_dependent/Template/Plugin/Frameworks.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use t::lib::TestBuilder; diff --git a/t/db_dependent/Template/Plugin/KohaDates.t b/t/db_dependent/Template/Plugin/KohaDates.t index 5d7300c6f5..b2d9cd5645 100755 --- a/t/db_dependent/Template/Plugin/KohaDates.t +++ b/t/db_dependent/Template/Plugin/KohaDates.t @@ -6,7 +6,8 @@ use C4::Context; use Koha::DateUtils qw( dt_from_string output_pref ); use Test::MockModule; -use Test::More tests => 9; +use Test::NoWarnings; +use Test::More tests => 10; use t::lib::Mocks; BEGIN { diff --git a/t/db_dependent/Template/Plugin/KohaTimes.t b/t/db_dependent/Template/Plugin/KohaTimes.t index 4a35f018f8..f98624b1a9 100755 --- a/t/db_dependent/Template/Plugin/KohaTimes.t +++ b/t/db_dependent/Template/Plugin/KohaTimes.t @@ -5,7 +5,8 @@ use Modern::Perl; use C4::Context; use Test::MockModule; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use t::lib::Mocks; BEGIN { diff --git a/t/db_dependent/Template/Plugin/NoticeTemplates.t b/t/db_dependent/Template/Plugin/NoticeTemplates.t index 2f26e82076..8bbb96b739 100755 --- a/t/db_dependent/Template/Plugin/NoticeTemplates.t +++ b/t/db_dependent/Template/Plugin/NoticeTemplates.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::Database; use Koha::Notice::Templates; diff --git a/t/db_dependent/Template/Plugin/To.t b/t/db_dependent/Template/Plugin/To.t index 033891f816..b84cf0b73b 100755 --- a/t/db_dependent/Template/Plugin/To.t +++ b/t/db_dependent/Template/Plugin/To.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use t::lib::TestBuilder; use Koha::Template::Plugin::To; diff --git a/t/db_dependent/Templates.t b/t/db_dependent/Templates.t index ebab637078..ece1d23f1d 100755 --- a/t/db_dependent/Templates.t +++ b/t/db_dependent/Templates.t @@ -19,7 +19,8 @@ use Modern::Perl; use CGI; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Deep; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/TestBuilder.t b/t/db_dependent/TestBuilder.t index 9946df3174..4649e171d7 100755 --- a/t/db_dependent/TestBuilder.t +++ b/t/db_dependent/TestBuilder.t @@ -21,7 +21,8 @@ use Modern::Perl; use utf8; -use Test::More tests => 16; +use Test::NoWarnings; +use Test::More tests => 17; use Test::Warn; use Try::Tiny; use File::Basename qw(dirname); diff --git a/t/db_dependent/Upload.t b/t/db_dependent/Upload.t index 8b3fa3c1f0..bd9d8d15c5 100755 --- a/t/db_dependent/Upload.t +++ b/t/db_dependent/Upload.t @@ -2,7 +2,8 @@ use Modern::Perl; use File::Temp qw/ tempdir /; -use Test::More tests => 13; +use Test::NoWarnings; +use Test::More tests => 14; use Test::Warn; use Try::Tiny; diff --git a/t/db_dependent/UsageStats.t b/t/db_dependent/UsageStats.t index 2d72af35d5..70d0f5ab4e 100755 --- a/t/db_dependent/UsageStats.t +++ b/t/db_dependent/UsageStats.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use t::lib::Mocks qw(mock_preference); use t::lib::TestBuilder; diff --git a/t/db_dependent/Utils/Datatables_Virtualshelves.t b/t/db_dependent/Utils/Datatables_Virtualshelves.t index de4398a7c7..bd9b57bd61 100755 --- a/t/db_dependent/Utils/Datatables_Virtualshelves.t +++ b/t/db_dependent/Utils/Datatables_Virtualshelves.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 13; +use Test::NoWarnings; +use Test::More tests => 14; use C4::Biblio qw( AddBiblio ); use C4::Context; diff --git a/t/db_dependent/Virtualshelves.t b/t/db_dependent/Virtualshelves.t index 25eb2e4bdc..59efae3eb7 100755 --- a/t/db_dependent/Virtualshelves.t +++ b/t/db_dependent/Virtualshelves.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 9; +use Test::NoWarnings; +use Test::More tests => 10; use Test::Exception; use DateTime::Duration; diff --git a/t/db_dependent/XSLT.t b/t/db_dependent/XSLT.t index 4f7ef3c84b..27706e7a05 100755 --- a/t/db_dependent/XSLT.t +++ b/t/db_dependent/XSLT.t @@ -20,7 +20,8 @@ use Modern::Perl; use File::Temp; use File::Path qw/make_path/; use MARC::Record; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::Warn; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/api/v1/acquisitions_baskets.t b/t/db_dependent/api/v1/acquisitions_baskets.t index b41939a5e3..d82c965a93 100755 --- a/t/db_dependent/api/v1/acquisitions_baskets.t +++ b/t/db_dependent/api/v1/acquisitions_baskets.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/acquisitions_funds.t b/t/db_dependent/api/v1/acquisitions_funds.t index 56283fe9f8..938ebac571 100755 --- a/t/db_dependent/api/v1/acquisitions_funds.t +++ b/t/db_dependent/api/v1/acquisitions_funds.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 14; +use Test::NoWarnings; +use Test::More tests => 15; use Test::Mojo; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/api/v1/acquisitions_orders.t b/t/db_dependent/api/v1/acquisitions_orders.t index b02cb891ff..432db8337b 100755 --- a/t/db_dependent/api/v1/acquisitions_orders.t +++ b/t/db_dependent/api/v1/acquisitions_orders.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/acquisitions_vendor_issues.t b/t/db_dependent/api/v1/acquisitions_vendor_issues.t index 5ed470daaf..8166a7385f 100755 --- a/t/db_dependent/api/v1/acquisitions_vendor_issues.t +++ b/t/db_dependent/api/v1/acquisitions_vendor_issues.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/acquisitions_vendors.t b/t/db_dependent/api/v1/acquisitions_vendors.t index 6adc66dfcd..d26afd4acd 100755 --- a/t/db_dependent/api/v1/acquisitions_vendors.t +++ b/t/db_dependent/api/v1/acquisitions_vendors.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; diff --git a/t/db_dependent/api/v1/advanced_editor_macros.t b/t/db_dependent/api/v1/advanced_editor_macros.t index 00d6d8a6f6..a3f8ad1ca7 100755 --- a/t/db_dependent/api/v1/advanced_editor_macros.t +++ b/t/db_dependent/api/v1/advanced_editor_macros.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/article_requests.t b/t/db_dependent/api/v1/article_requests.t index 9ba0ffb060..539c4fc257 100755 --- a/t/db_dependent/api/v1/article_requests.t +++ b/t/db_dependent/api/v1/article_requests.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; use t::lib::Mocks; diff --git a/t/db_dependent/api/v1/auth.t b/t/db_dependent/api/v1/auth.t index 5d4f827f58..4a11fc20fc 100755 --- a/t/db_dependent/api/v1/auth.t +++ b/t/db_dependent/api/v1/auth.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/auth_authenticate_api_request.t b/t/db_dependent/api/v1/auth_authenticate_api_request.t index d4e8e97445..6cc1c5d529 100755 --- a/t/db_dependent/api/v1/auth_authenticate_api_request.t +++ b/t/db_dependent/api/v1/auth_authenticate_api_request.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::Mojo; use Module::Load::Conditional qw(can_load); diff --git a/t/db_dependent/api/v1/auth_basic.t b/t/db_dependent/api/v1/auth_basic.t index 808dc31bb9..dbccadb9d3 100755 --- a/t/db_dependent/api/v1/auth_basic.t +++ b/t/db_dependent/api/v1/auth_basic.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/authorised_values.t b/t/db_dependent/api/v1/authorised_values.t index 1a322112f4..02b8318ac3 100755 --- a/t/db_dependent/api/v1/authorised_values.t +++ b/t/db_dependent/api/v1/authorised_values.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/authorities.t b/t/db_dependent/api/v1/authorities.t index aa548fc460..a1cf0a7eaf 100755 --- a/t/db_dependent/api/v1/authorities.t +++ b/t/db_dependent/api/v1/authorities.t @@ -20,7 +20,8 @@ use Modern::Perl; use utf8; use Encode; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::MockModule; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/bookings.t b/t/db_dependent/api/v1/bookings.t index 17fcb0a6c0..3d767aed88 100755 --- a/t/db_dependent/api/v1/bookings.t +++ b/t/db_dependent/api/v1/bookings.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/cashups.t b/t/db_dependent/api/v1/cashups.t index ab7646d0f9..8afb0d590e 100755 --- a/t/db_dependent/api/v1/cashups.t +++ b/t/db_dependent/api/v1/cashups.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/checkouts.t b/t/db_dependent/api/v1/checkouts.t index 779f00156a..ebc247ef2a 100755 --- a/t/db_dependent/api/v1/checkouts.t +++ b/t/db_dependent/api/v1/checkouts.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 108; +use Test::NoWarnings; +use Test::More tests => 109; use Test::MockModule; use Test::Mojo; use t::lib::Mocks; diff --git a/t/db_dependent/api/v1/circulation_rules.t b/t/db_dependent/api/v1/circulation_rules.t index 8be6e47fa4..da350cc44f 100755 --- a/t/db_dependent/api/v1/circulation_rules.t +++ b/t/db_dependent/api/v1/circulation_rules.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/cities.t b/t/db_dependent/api/v1/cities.t index b381b93a9b..08e4f3a647 100755 --- a/t/db_dependent/api/v1/cities.t +++ b/t/db_dependent/api/v1/cities.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/clubs_holds.t b/t/db_dependent/api/v1/clubs_holds.t index e7de87b838..7385d9edde 100755 --- a/t/db_dependent/api/v1/clubs_holds.t +++ b/t/db_dependent/api/v1/clubs_holds.t @@ -18,7 +18,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/deleted_biblios.t b/t/db_dependent/api/v1/deleted_biblios.t index 625e64fac4..26d43cdf60 100755 --- a/t/db_dependent/api/v1/deleted_biblios.t +++ b/t/db_dependent/api/v1/deleted_biblios.t @@ -20,7 +20,8 @@ use Modern::Perl; use utf8; use Encode; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/edifact_files.t b/t/db_dependent/api/v1/edifact_files.t index fc0c38fa3c..edc4b80b74 100755 --- a/t/db_dependent/api/v1/edifact_files.t +++ b/t/db_dependent/api/v1/edifact_files.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/erm_agreements.t b/t/db_dependent/api/v1/erm_agreements.t index b965d88821..41a4466fed 100755 --- a/t/db_dependent/api/v1/erm_agreements.t +++ b/t/db_dependent/api/v1/erm_agreements.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/erm_counter_files.t b/t/db_dependent/api/v1/erm_counter_files.t index 7a627aee65..ed6d8f3bfd 100755 --- a/t/db_dependent/api/v1/erm_counter_files.t +++ b/t/db_dependent/api/v1/erm_counter_files.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/erm_counter_logs.t b/t/db_dependent/api/v1/erm_counter_logs.t index a5968543c6..ea552b09f8 100755 --- a/t/db_dependent/api/v1/erm_counter_logs.t +++ b/t/db_dependent/api/v1/erm_counter_logs.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/erm_counter_registries.t b/t/db_dependent/api/v1/erm_counter_registries.t index ed7c030ae6..aa76e3e3de 100755 --- a/t/db_dependent/api/v1/erm_counter_registries.t +++ b/t/db_dependent/api/v1/erm_counter_registries.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/erm_custom_reports.t b/t/db_dependent/api/v1/erm_custom_reports.t index fcb7eba1b0..6dcdb5953e 100755 --- a/t/db_dependent/api/v1/erm_custom_reports.t +++ b/t/db_dependent/api/v1/erm_custom_reports.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/erm_documents.t b/t/db_dependent/api/v1/erm_documents.t index 7ace83e9a3..bce6412c29 100755 --- a/t/db_dependent/api/v1/erm_documents.t +++ b/t/db_dependent/api/v1/erm_documents.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/erm_eholdings_packages.t b/t/db_dependent/api/v1/erm_eholdings_packages.t index 93a5c8240a..08f32e5dd0 100755 --- a/t/db_dependent/api/v1/erm_eholdings_packages.t +++ b/t/db_dependent/api/v1/erm_eholdings_packages.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/erm_eholdings_resources.t b/t/db_dependent/api/v1/erm_eholdings_resources.t index e2bd68f302..60755eafb9 100755 --- a/t/db_dependent/api/v1/erm_eholdings_resources.t +++ b/t/db_dependent/api/v1/erm_eholdings_resources.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/erm_eholdings_titles.t b/t/db_dependent/api/v1/erm_eholdings_titles.t index 0ed9f19d89..d7c20d3a7f 100755 --- a/t/db_dependent/api/v1/erm_eholdings_titles.t +++ b/t/db_dependent/api/v1/erm_eholdings_titles.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/erm_licenses.t b/t/db_dependent/api/v1/erm_licenses.t index 51f1fcd87f..553a680430 100755 --- a/t/db_dependent/api/v1/erm_licenses.t +++ b/t/db_dependent/api/v1/erm_licenses.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/erm_sushi_services.t b/t/db_dependent/api/v1/erm_sushi_services.t index 5595d727b0..b092d93805 100755 --- a/t/db_dependent/api/v1/erm_sushi_services.t +++ b/t/db_dependent/api/v1/erm_sushi_services.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/erm_usage_data_providers.t b/t/db_dependent/api/v1/erm_usage_data_providers.t index 24edcb2137..dec764a451 100755 --- a/t/db_dependent/api/v1/erm_usage_data_providers.t +++ b/t/db_dependent/api/v1/erm_usage_data_providers.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/erm_usage_titles.t b/t/db_dependent/api/v1/erm_usage_titles.t index 09572ceab7..11397e9f7b 100755 --- a/t/db_dependent/api/v1/erm_usage_titles.t +++ b/t/db_dependent/api/v1/erm_usage_titles.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/erm_users.t b/t/db_dependent/api/v1/erm_users.t index 04268c1db8..7dfb650bc7 100755 --- a/t/db_dependent/api/v1/erm_users.t +++ b/t/db_dependent/api/v1/erm_users.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/extended_attribute_types.t b/t/db_dependent/api/v1/extended_attribute_types.t index 6bcc8bd42a..fbf0c46635 100755 --- a/t/db_dependent/api/v1/extended_attribute_types.t +++ b/t/db_dependent/api/v1/extended_attribute_types.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/idp.t b/t/db_dependent/api/v1/idp.t index c67b5124e0..4fa796a576 100755 --- a/t/db_dependent/api/v1/idp.t +++ b/t/db_dependent/api/v1/idp.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; use Test::Warn; use Mojo::JWT; diff --git a/t/db_dependent/api/v1/ill_backends.t b/t/db_dependent/api/v1/ill_backends.t index 58ac8e9d77..1657335ef0 100755 --- a/t/db_dependent/api/v1/ill_backends.t +++ b/t/db_dependent/api/v1/ill_backends.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::MockModule; use Test::MockObject; diff --git a/t/db_dependent/api/v1/ill_batches.t b/t/db_dependent/api/v1/ill_batches.t index ed744a80ac..a164fb59a8 100755 --- a/t/db_dependent/api/v1/ill_batches.t +++ b/t/db_dependent/api/v1/ill_batches.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/ill_batchstatuses.t b/t/db_dependent/api/v1/ill_batchstatuses.t index cf73020ec7..86597502ac 100755 --- a/t/db_dependent/api/v1/ill_batchstatuses.t +++ b/t/db_dependent/api/v1/ill_batchstatuses.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/ill_requests.t b/t/db_dependent/api/v1/ill_requests.t index a2260a23d3..0ce41b6fa8 100755 --- a/t/db_dependent/api/v1/ill_requests.t +++ b/t/db_dependent/api/v1/ill_requests.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use Test::MockObject; diff --git a/t/db_dependent/api/v1/import_batch_profiles.t b/t/db_dependent/api/v1/import_batch_profiles.t index 88c074c558..d4542007da 100755 --- a/t/db_dependent/api/v1/import_batch_profiles.t +++ b/t/db_dependent/api/v1/import_batch_profiles.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/api/v1/import_record_matches.t b/t/db_dependent/api/v1/import_record_matches.t index fd203c3125..6477ac26e3 100755 --- a/t/db_dependent/api/v1/import_record_matches.t +++ b/t/db_dependent/api/v1/import_record_matches.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/item_groups.t b/t/db_dependent/api/v1/item_groups.t index 1b3a1bdffa..6fbca6950a 100755 --- a/t/db_dependent/api/v1/item_groups.t +++ b/t/db_dependent/api/v1/item_groups.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/item_types.t b/t/db_dependent/api/v1/item_types.t index 3196bbbb3b..9d2786ef7c 100755 --- a/t/db_dependent/api/v1/item_types.t +++ b/t/db_dependent/api/v1/item_types.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/items.t b/t/db_dependent/api/v1/items.t index 4dfcc2200c..a392c4c310 100755 --- a/t/db_dependent/api/v1/items.t +++ b/t/db_dependent/api/v1/items.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::MockModule; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/items/bundled_items.t b/t/db_dependent/api/v1/items/bundled_items.t index fea46e265f..aa582b3173 100755 --- a/t/db_dependent/api/v1/items/bundled_items.t +++ b/t/db_dependent/api/v1/items/bundled_items.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use Test::Mojo; diff --git a/t/db_dependent/api/v1/jobs.t b/t/db_dependent/api/v1/jobs.t index 7fae9293fc..04b3ca0be1 100755 --- a/t/db_dependent/api/v1/jobs.t +++ b/t/db_dependent/api/v1/jobs.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 31; +use Test::NoWarnings; +use Test::More tests => 32; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/libraries.t b/t/db_dependent/api/v1/libraries.t index da4e172862..954805eb11 100755 --- a/t/db_dependent/api/v1/libraries.t +++ b/t/db_dependent/api/v1/libraries.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/oauth.t b/t/db_dependent/api/v1/oauth.t index c9381796e8..78eb9a21b3 100755 --- a/t/db_dependent/api/v1/oauth.t +++ b/t/db_dependent/api/v1/oauth.t @@ -17,6 +17,7 @@ use Modern::Perl; +use Test::NoWarnings; use Test::More; use Test::MockModule; use Test::Mojo; diff --git a/t/db_dependent/api/v1/pagination.t b/t/db_dependent/api/v1/pagination.t index fd6ab5479e..fc20f390bc 100755 --- a/t/db_dependent/api/v1/pagination.t +++ b/t/db_dependent/api/v1/pagination.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/password_validation.t b/t/db_dependent/api/v1/password_validation.t index e5d891200f..26b78bc853 100755 --- a/t/db_dependent/api/v1/password_validation.t +++ b/t/db_dependent/api/v1/password_validation.t @@ -18,7 +18,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/patron_categories.t b/t/db_dependent/api/v1/patron_categories.t index ecad6041e7..e720320c72 100755 --- a/t/db_dependent/api/v1/patron_categories.t +++ b/t/db_dependent/api/v1/patron_categories.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/patrons.t b/t/db_dependent/api/v1/patrons.t index 4fb5836df4..a14d3bc3be 100755 --- a/t/db_dependent/api/v1/patrons.t +++ b/t/db_dependent/api/v1/patrons.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use Test::MockModule; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/patrons_accounts.t b/t/db_dependent/api/v1/patrons_accounts.t index 63a840b609..d869ce0270 100755 --- a/t/db_dependent/api/v1/patrons_accounts.t +++ b/t/db_dependent/api/v1/patrons_accounts.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; diff --git a/t/db_dependent/api/v1/patrons_checkouts.t b/t/db_dependent/api/v1/patrons_checkouts.t index 05a78787da..460055c490 100755 --- a/t/db_dependent/api/v1/patrons_checkouts.t +++ b/t/db_dependent/api/v1/patrons_checkouts.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::MockModule; use Test::Mojo; diff --git a/t/db_dependent/api/v1/patrons_extended_attributes.t b/t/db_dependent/api/v1/patrons_extended_attributes.t index d7bf3def84..8144e0ac7d 100755 --- a/t/db_dependent/api/v1/patrons_extended_attributes.t +++ b/t/db_dependent/api/v1/patrons_extended_attributes.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/patrons_holds.t b/t/db_dependent/api/v1/patrons_holds.t index c7a494c681..7e0247d159 100755 --- a/t/db_dependent/api/v1/patrons_holds.t +++ b/t/db_dependent/api/v1/patrons_holds.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::MockModule; use Test::Mojo; diff --git a/t/db_dependent/api/v1/patrons_password.t b/t/db_dependent/api/v1/patrons_password.t index 8f79a4b81b..83483f6888 100755 --- a/t/db_dependent/api/v1/patrons_password.t +++ b/t/db_dependent/api/v1/patrons_password.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; diff --git a/t/db_dependent/api/v1/patrons_password_expiration.t b/t/db_dependent/api/v1/patrons_password_expiration.t index 9e444acbf0..5b817ea986 100755 --- a/t/db_dependent/api/v1/patrons_password_expiration.t +++ b/t/db_dependent/api/v1/patrons_password_expiration.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; diff --git a/t/db_dependent/api/v1/patrons_recalls.t b/t/db_dependent/api/v1/patrons_recalls.t index 96843a6f41..14b3016e52 100755 --- a/t/db_dependent/api/v1/patrons_recalls.t +++ b/t/db_dependent/api/v1/patrons_recalls.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/preservation_Processings.t b/t/db_dependent/api/v1/preservation_Processings.t index b34bf42af4..16763ea788 100755 --- a/t/db_dependent/api/v1/preservation_Processings.t +++ b/t/db_dependent/api/v1/preservation_Processings.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/preservation_Trains.t b/t/db_dependent/api/v1/preservation_Trains.t index 4f055fcf9d..dd7a9fbbd5 100755 --- a/t/db_dependent/api/v1/preservation_Trains.t +++ b/t/db_dependent/api/v1/preservation_Trains.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/preservation_WaitingList.t b/t/db_dependent/api/v1/preservation_WaitingList.t index c29c0d7f1f..1aea653a19 100755 --- a/t/db_dependent/api/v1/preservation_WaitingList.t +++ b/t/db_dependent/api/v1/preservation_WaitingList.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/provider.t b/t/db_dependent/api/v1/provider.t index d505fc99d9..a1508fc88c 100755 --- a/t/db_dependent/api/v1/provider.t +++ b/t/db_dependent/api/v1/provider.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/api/v1/public/lists.t b/t/db_dependent/api/v1/public/lists.t index 5a3653fd3c..2554b9f902 100755 --- a/t/db_dependent/api/v1/public/lists.t +++ b/t/db_dependent/api/v1/public/lists.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use JSON qw(encode_json); diff --git a/t/db_dependent/api/v1/query.t b/t/db_dependent/api/v1/query.t index f807f21ea2..2346e20a82 100755 --- a/t/db_dependent/api/v1/query.t +++ b/t/db_dependent/api/v1/query.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/record_sources.t b/t/db_dependent/api/v1/record_sources.t index edf11ee709..c88819d60f 100755 --- a/t/db_dependent/api/v1/record_sources.t +++ b/t/db_dependent/api/v1/record_sources.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/responses.t b/t/db_dependent/api/v1/responses.t index 177698e1a7..15af0272d2 100755 --- a/t/db_dependent/api/v1/responses.t +++ b/t/db_dependent/api/v1/responses.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::MockModule; use Test::Mojo; diff --git a/t/db_dependent/api/v1/return_claims.t b/t/db_dependent/api/v1/return_claims.t index c43557adbe..30159b5438 100755 --- a/t/db_dependent/api/v1/return_claims.t +++ b/t/db_dependent/api/v1/return_claims.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/search_filters.t b/t/db_dependent/api/v1/search_filters.t index 6b16603b60..9c56257536 100755 --- a/t/db_dependent/api/v1/search_filters.t +++ b/t/db_dependent/api/v1/search_filters.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/smtp_servers.t b/t/db_dependent/api/v1/smtp_servers.t index d509d0f8f8..acc186360d 100755 --- a/t/db_dependent/api/v1/smtp_servers.t +++ b/t/db_dependent/api/v1/smtp_servers.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/stockrotation_rotas.t b/t/db_dependent/api/v1/stockrotation_rotas.t index 017380c843..8aa4796929 100755 --- a/t/db_dependent/api/v1/stockrotation_rotas.t +++ b/t/db_dependent/api/v1/stockrotation_rotas.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use Mojo::JSON qw(encode_json); diff --git a/t/db_dependent/api/v1/stockrotationstage.t b/t/db_dependent/api/v1/stockrotationstage.t index 0281470a1b..59bedd5910 100755 --- a/t/db_dependent/api/v1/stockrotationstage.t +++ b/t/db_dependent/api/v1/stockrotationstage.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/suggestions.t b/t/db_dependent/api/v1/suggestions.t index cac5172acb..ffb531d469 100755 --- a/t/db_dependent/api/v1/suggestions.t +++ b/t/db_dependent/api/v1/suggestions.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/ticket_updates.t b/t/db_dependent/api/v1/ticket_updates.t index 5f7c7c0df3..fa6d248f48 100755 --- a/t/db_dependent/api/v1/ticket_updates.t +++ b/t/db_dependent/api/v1/ticket_updates.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/tickets.t b/t/db_dependent/api/v1/tickets.t index 2519256d91..8118618a90 100755 --- a/t/db_dependent/api/v1/tickets.t +++ b/t/db_dependent/api/v1/tickets.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/transfer_limits.t b/t/db_dependent/api/v1/transfer_limits.t index 5949040150..e9bd319ad3 100755 --- a/t/db_dependent/api/v1/transfer_limits.t +++ b/t/db_dependent/api/v1/transfer_limits.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/unhandled_exceptions.t b/t/db_dependent/api/v1/unhandled_exceptions.t index 61517453ce..7b1d11fa33 100755 --- a/t/db_dependent/api/v1/unhandled_exceptions.t +++ b/t/db_dependent/api/v1/unhandled_exceptions.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::MockModule; use Test::Mojo; diff --git a/t/db_dependent/check_kohastructure.t b/t/db_dependent/check_kohastructure.t index ec5c48c98e..cb07653d67 100755 --- a/t/db_dependent/check_kohastructure.t +++ b/t/db_dependent/check_kohastructure.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use File::Slurp; use C4::Context; my $content = read_file( C4::Context->config("intranetdir") diff --git a/t/db_dependent/check_sysprefs.t b/t/db_dependent/check_sysprefs.t index 3d194e4a56..5f789c3589 100755 --- a/t/db_dependent/check_sysprefs.t +++ b/t/db_dependent/check_sysprefs.t @@ -29,7 +29,8 @@ use Array::Utils qw(array_minus); our $showsql = 0; GetOptions( 'showsql' => \$showsql ); -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; our $dbh = C4::Context->dbh; my $intranetdir = C4::Context->config('intranetdir'); diff --git a/t/db_dependent/db_structure.t b/t/db_dependent/db_structure.t index 41de50750c..906e121afd 100755 --- a/t/db_dependent/db_structure.t +++ b/t/db_dependent/db_structure.t @@ -17,6 +17,7 @@ use Modern::Perl; +use Test::NoWarnings; use Test::More; use Koha::Database; diff --git a/t/db_dependent/misc/translator/xgettext-installer.t b/t/db_dependent/misc/translator/xgettext-installer.t index d8a3286b32..de21b59919 100755 --- a/t/db_dependent/misc/translator/xgettext-installer.t +++ b/t/db_dependent/misc/translator/xgettext-installer.t @@ -6,7 +6,8 @@ use File::Slurp; use File::Temp qw(tempdir); use FindBin qw($Bin); use Locale::PO; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; my $tempdir = tempdir(CLEANUP => 1); diff --git a/t/db_dependent/misc/translator/xgettext-pref.t b/t/db_dependent/misc/translator/xgettext-pref.t index 2e5bcdeba0..c0fcafd280 100755 --- a/t/db_dependent/misc/translator/xgettext-pref.t +++ b/t/db_dependent/misc/translator/xgettext-pref.t @@ -6,7 +6,8 @@ use File::Slurp; use File::Temp qw(tempdir); use FindBin qw($Bin); use Locale::PO; -use Test::More tests => 16; +use Test::NoWarnings; +use Test::More tests => 17; my $tempdir = tempdir(CLEANUP => 1); diff --git a/t/db_dependent/misc/translator/xgettext-tt2.t b/t/db_dependent/misc/translator/xgettext-tt2.t index 0c18473ebb..9261a7ff02 100755 --- a/t/db_dependent/misc/translator/xgettext-tt2.t +++ b/t/db_dependent/misc/translator/xgettext-tt2.t @@ -6,7 +6,8 @@ use File::Slurp; use File::Temp qw(tempdir); use FindBin qw($Bin); use Locale::PO; -use Test::More tests => 36; +use Test::NoWarnings; +use Test::More tests => 37; my $tempdir = tempdir(CLEANUP => 1); diff --git a/t/db_dependent/mojo/csrf.t b/t/db_dependent/mojo/csrf.t index 511cf1a7ff..9fc953c95f 100755 --- a/t/db_dependent/mojo/csrf.t +++ b/t/db_dependent/mojo/csrf.t @@ -2,7 +2,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; use Koha::Database; diff --git a/t/db_dependent/rollingloans.t b/t/db_dependent/rollingloans.t index 60a4d6522c..4fbca54448 100755 --- a/t/db_dependent/rollingloans.t +++ b/t/db_dependent/rollingloans.t @@ -11,7 +11,8 @@ use Koha::Patrons; use t::lib::TestBuilder; use t::lib::Mocks qw(mock_preference); -use Test::More tests => 8; +use Test::NoWarnings; +use Test::More tests => 9; my $schema = Koha::Database->new->schema; $schema->storage->txn_begin; diff --git a/t/db_dependent/selenium/01-installation.t b/t/db_dependent/selenium/01-installation.t index ce9841b81f..73e7f501f5 100755 --- a/t/db_dependent/selenium/01-installation.t +++ b/t/db_dependent/selenium/01-installation.t @@ -22,7 +22,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use t::lib::Selenium; use C4::Context; diff --git a/t/db_dependent/selenium/administration_tasks.t b/t/db_dependent/selenium/administration_tasks.t index 4dc1d4362b..fe35fd7a35 100755 --- a/t/db_dependent/selenium/administration_tasks.t +++ b/t/db_dependent/selenium/administration_tasks.t @@ -23,7 +23,8 @@ use Modern::Perl; use C4::Context; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use t::lib::Selenium; use t::lib::TestBuilder; diff --git a/t/db_dependent/selenium/authentication.t b/t/db_dependent/selenium/authentication.t index b046ff9eb9..4824e129fd 100755 --- a/t/db_dependent/selenium/authentication.t +++ b/t/db_dependent/selenium/authentication.t @@ -23,7 +23,8 @@ #Note: If you are testing this on kohadevbox with selenium installed in kohadevbox then you need to set the staffClientBaseURL to localhost:8080 and the OPACBaseURL to localhost:80 use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use C4::Context; use Koha::AuthUtils; diff --git a/t/db_dependent/selenium/authentication_2fa.t b/t/db_dependent/selenium/authentication_2fa.t index 9ef2e22cb0..19753ee269 100755 --- a/t/db_dependent/selenium/authentication_2fa.t +++ b/t/db_dependent/selenium/authentication_2fa.t @@ -17,7 +17,8 @@ use Modern::Perl; use utf8; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use C4::Context; use Koha::AuthUtils; diff --git a/t/db_dependent/selenium/batch_item_modification.t b/t/db_dependent/selenium/batch_item_modification.t index acb5cac3eb..aedf514069 100755 --- a/t/db_dependent/selenium/batch_item_modification.t +++ b/t/db_dependent/selenium/batch_item_modification.t @@ -20,7 +20,8 @@ use Modern::Perl; use C4::Context; use Koha::BackgroundJobs; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use t::lib::Selenium; use t::lib::TestBuilder; diff --git a/t/db_dependent/selenium/ilsdi.t b/t/db_dependent/selenium/ilsdi.t index 2eaeaaaa31..6b0ba2a535 100755 --- a/t/db_dependent/selenium/ilsdi.t +++ b/t/db_dependent/selenium/ilsdi.t @@ -20,7 +20,8 @@ use Modern::Perl; use C4::Context; use XML::LibXML; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use t::lib::Selenium; use t::lib::TestBuilder; diff --git a/t/db_dependent/selenium/opac_holds.t b/t/db_dependent/selenium/opac_holds.t index e5b6330955..54024ce5bc 100755 --- a/t/db_dependent/selenium/opac_holds.t +++ b/t/db_dependent/selenium/opac_holds.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use C4::Biblio qw(DelBiblio); diff --git a/t/db_dependent/selenium/patrons_search.t b/t/db_dependent/selenium/patrons_search.t index b1a1bf7cf1..b561225c48 100755 --- a/t/db_dependent/selenium/patrons_search.t +++ b/t/db_dependent/selenium/patrons_search.t @@ -27,6 +27,7 @@ our $DT_delay = 1; use C4::Context; use utf8; +use Test::NoWarnings; use Test::More; use Test::MockModule; diff --git a/t/db_dependent/selenium/remove_from_cart.t b/t/db_dependent/selenium/remove_from_cart.t index f477e99f63..c7ceec5002 100755 --- a/t/db_dependent/selenium/remove_from_cart.t +++ b/t/db_dependent/selenium/remove_from_cart.t @@ -19,6 +19,7 @@ use Modern::Perl; use File::Basename qw(dirname ); use Test::WWW::Mechanize; +use Test::NoWarnings; use Test::More; use Test::MockModule; diff --git a/t/db_dependent/selenium/self_registration.t b/t/db_dependent/selenium/self_registration.t index 3a1b0e7929..0f98723b01 100755 --- a/t/db_dependent/selenium/self_registration.t +++ b/t/db_dependent/selenium/self_registration.t @@ -20,6 +20,7 @@ use utf8; use C4::Context; +use Test::NoWarnings; use Test::More; use Test::MockModule; diff --git a/t/db_dependent/selenium/system_preferences_search.t b/t/db_dependent/selenium/system_preferences_search.t index 70b8960fe8..0df3908051 100755 --- a/t/db_dependent/selenium/system_preferences_search.t +++ b/t/db_dependent/selenium/system_preferences_search.t @@ -16,6 +16,7 @@ use Modern::Perl; use Koha::AuthUtils; +use Test::NoWarnings; use Test::More; use t::lib::Mocks; diff --git a/t/db_dependent/selenium/update_child_to_adult.t b/t/db_dependent/selenium/update_child_to_adult.t index 8a218e3d3d..57b64d4aa8 100755 --- a/t/db_dependent/selenium/update_child_to_adult.t +++ b/t/db_dependent/selenium/update_child_to_adult.t @@ -19,6 +19,7 @@ use Modern::Perl; use C4::Context; +use Test::NoWarnings; use Test::More; use Test::MockModule; diff --git a/t/db_dependent/sysprefs.t b/t/db_dependent/sysprefs.t index f214bc7719..54680c3ec4 100755 --- a/t/db_dependent/sysprefs.t +++ b/t/db_dependent/sysprefs.t @@ -19,7 +19,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 9; +use Test::NoWarnings; +use Test::More tests => 10; use C4::Context; use Koha::Database; diff --git a/t/db_dependent/www/regressions.t b/t/db_dependent/www/regressions.t index 8b9c77b07b..d4bf96e125 100755 --- a/t/db_dependent/www/regressions.t +++ b/t/db_dependent/www/regressions.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; use t::lib::Mocks; diff --git a/t/db_dependent/www/rest_api.t b/t/db_dependent/www/rest_api.t index 3f2fdebfb2..d25d2b731a 100755 --- a/t/db_dependent/www/rest_api.t +++ b/t/db_dependent/www/rest_api.t @@ -17,6 +17,7 @@ use Modern::Perl; +use Test::NoWarnings; use Test::More; #See plan tests => \d+ below use LWP::UserAgent; diff --git a/t/db_dependent/yaml.t b/t/db_dependent/yaml.t index 586c053ca0..3d442bd189 100755 --- a/t/db_dependent/yaml.t +++ b/t/db_dependent/yaml.t @@ -1,4 +1,5 @@ use Modern::Perl; +use Test::NoWarnings; use Test::More; use YAML::XS; diff --git a/t/template_filters.t b/t/template_filters.t index 0a24be6982..fc7df20cb1 100755 --- a/t/template_filters.t +++ b/t/template_filters.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; use t::lib::QA::TemplateFilters; subtest 'Asset must use raw' => sub { diff --git a/t/timezones.t b/t/timezones.t index 64b13b78a9..21beffd7de 100755 --- a/t/timezones.t +++ b/t/timezones.t @@ -3,7 +3,8 @@ use Modern::Perl; use C4::Context; use Koha::Config; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Warn; use t::lib::Mocks; -- 2.39.5