From 5b69e6df98203eb35806299a82493d2898ca299c 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 Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- 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 ++- .../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 ++- .../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 | 4 ++-- 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(+), 633 deletions(-) diff --git a/t/00-check-atomic-updates.t b/t/00-check-atomic-updates.t index b867be00bb..52c221eeb7 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 2c26e4af23..0131992ca1 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 e70f985049..438c596ae5 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 a3f95a3c28..dbfecbc04d 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 99f529f145..fdf7df267c 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 03c343799e..a4c79df1b3 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 6c2957d189..ed2041374d 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 d45dfa5703..d7eedee376 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 eed55b6458..679d68ecab 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 1779e4cb10..4ac3e74a3c 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 664a80e2f8..e1654f8c53 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 8c4de3e211..bbe01c1844 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 fa5bc89b1d..7d95df487e 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 ca9f496499..3665ab9e83 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 a521a52564..0902fa6dde 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 6d2de191e3..5c245e6364 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 d015926a9f..2f87ab6e50 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 daa217f6c0..cb5277ff90 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 83905a18c1..98a46a262f 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 e571c4f301..76eef6ced1 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 1c99c64f7b..fa154a814d 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 2c4a6ce567..4b927e6e28 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 7e2870b512..1081bca273 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 971cfdbf25..100ebf1b5b 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 24f60ff5bc..c05f6973ef 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 95e25ac1da..843f56541f 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 da0f8e461e..bf37aeb6a3 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 e0e4e16e2c..4a9229c23a 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 c49bc9957c..c91493e491 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 f32b32affd..c2e5ff9754 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 23a2c2c172..b4d3604bff 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 ef3d6e9596..ca60077712 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 e515b9b003..95e1aebeed 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 e6e6db3cd7..df9658a88e 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 7947b760c5..c8f07a788f 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 e31b8525a1..fc5897151a 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 16a3ba9667..54a0adab86 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 54f9192dd6..8fa5b14365 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 3b9b1f81d1..40a68dd402 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 bbbae0e39e..4fb05c05a1 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 e24cfcd93b..941b7b3d28 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 0247b9b297..3f2a283f28 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 108373cfb6..fa9d68656a 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 748bdd0075..23f786af6a 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 8809b34f6e..7172647ff6 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 9de820e344..973b355438 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 ea323240e8..e80272092c 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 ac4a7e7d77..37a48a2c41 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 7dfa623c41..45a34d3a0c 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 0391f48cc4..3c4811c7b7 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 82c68dd335..10fbb1d008 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 bbb27b7bd9..f6595bb229 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 52e71362c5..057314914f 100755 --- a/t/Koha/REST/Plugin/Query.t +++ b/t/Koha/REST/Plugin/Query.t @@ -369,7 +369,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 96edfe2542..8dc0f92a83 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 eb5afe2353..e7a50f4932 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 f851d9457a..3f2e23ee4f 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 daf20d628f..2cb164a277 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 39ba02529f..3073116fe1 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 3635e5987e..4764054c25 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 5a349c9eb2..fa8140ef28 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 1238c6958c..fa1c5eb3f8 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 1aeaf793d4..c50b08e54d 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 0a94cc0c9d..a9ad440d1d 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 4ede2590b4..788ca7e9f9 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 0ed478e25e..299cd8b341 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 552aa55964..79647fb407 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 285c37adca..452db35dea 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 2f604761af..8b6b0e785e 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 2558a84414..7948e45e3b 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 be7cd93d33..6ac67bbc5d 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 688e18edbc..7edada5713 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 3fe7f78168..670340bd52 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 f7c5dff52c..e3ef5e9e9a 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 14332d0a40..6d112e5c5f 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 f8b4defb8e..d573ac7b69 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 ce1b9dd23c..3017aab387 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 4a4814de6b..dc3e88dcc9 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 112ecf21ba..4fb0ab0de4 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 2bb929f5ce..cc72bc6f76 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 a9cfc5458a..ff9f9b4559 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 88af19c0c8..b860ade25f 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 88d27891e9..91512a32b5 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 ac89c8f7d9..448a7168c1 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 fe052e0931..e4c3d6373e 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 1730ac78bf..26706e0ee7 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 2dd35e73a0..ef08b9ca64 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 2a5d8aa817..8a3b3207c1 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 8c5f89669a..501b51eb20 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 89a3e31909..32e8512b82 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 91bfb23879..4ef5afb353 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 ae58edbca1..800de5146f 100755 --- a/t/SIP/Sip.t +++ b/t/SIP/Sip.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; 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 1b861357a0..f9dd966bf3 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 7ce4759724..273b962313 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 048a5ac0a9..f2d4ebf721 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 594d05d6bc..32efb2471b 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 8aa1d9ae3a..5201338658 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 66a1fa6844..2479c6192f 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 05526a59ad..5d36b70278 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 ee5f40b731..d0795b8217 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 589f948cab..9c8c1dbba5 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 f729cd17e6..ac28ee5a5d 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 ed26cc6409..aee736ffb4 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 690c683c01..cf20284777 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 465edacdef..d8912f45f4 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 55247b68bb..6b0c0f5037 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 66a3e8694f..3899af48f7 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 79bc918614..069feffe56 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 d8b8f9768c..7552a2d345 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 78dcf4af71..d465647fd0 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 fc19aefce6..ea735e48dc 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 45c9c7b950..f8d194d467 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 5715183ecf..53bb100244 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 852f8407f9..7ca84133de 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 diff --git a/t/db_dependent/Acquisition/GetOrdersByBiblionumber.t b/t/db_dependent/Acquisition/GetOrdersByBiblionumber.t index 56803ce889..510291300b 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 c82e168202..0ac98f044f 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( diff --git a/t/db_dependent/Acquisition/NewOrder.t b/t/db_dependent/Acquisition/NewOrder.t index ab5f55095d..a653db6792 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 d601163b72..6df5a18d21 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 cd408003cf..cf67201c85 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 48ab35a611..1d4509da63 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 459674c72e..d5fdfff5ec 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 bef18fc53a..271cc4b39f 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 a4eac542f9..152c319b11 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 751429dae9..7af8666621 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 38d7c7cbbe..ca3691bf2a 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 6bb694c0d9..d3eaed0573 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 2305573910..01cf6341c2 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 b587ac28a0..07d7619191 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 d223e5d4c4..7dc65e9789 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 3b88d0e7a1..4806cac3e1 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 abe0d7da96..e223ddba34 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 d658b97645..9eead9fda5 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 2ddbda4536..8679bf388c 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 c46ad51e9c..e7f50694ce 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 55fac79f51..744543a73a 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 e760cbb399..5c77b9bf4c 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 a30d23e528..894be5686e 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 847b95b9b4..697a7cfdb8 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 b4eb059c2c..01157bd972 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 bc11dad07a..051ae798f1 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 7becb4e39c..3fdf7412ef 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 00799add0f..1b07268ff7 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 4b5cb7e6d3..5b936fa727 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 d3fd9f9d24..6a825ebe6e 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 b85dd1525d..6cf3eff006 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 dc8824c6e8..6fcb685d53 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 531f1c233f..e042446b05 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 c40e551d7f..9997dbc14a 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 570d63bcf4..6dcd1c00d2 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 1e313366b1..10175f5162 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 90dc45bbe2..8cf87da34f 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 c1a0236fdd..7847560fca 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 d3e7dea4f6..101857d3b7 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 09c7e53990..2963444f61 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 1f2fa7842d..e4a1ea8bd9 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 5a7b9d98e7..3fd1bd5f9a 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 3aa02e9168..eccbeb5e56 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 3eb235c5df..5980467ca3 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 502a8ed287..598c04c1db 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 6a9e92bd14..b85c314377 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 96a5f83750..6985f4a72a 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 57016c5158..b737c3c69b 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 7918a97187..c65787c434 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 fb9c0a070d..f8ed66d0c3 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 b20c0840a1..ac74899d7b 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 ba903477ca..5aab62db71 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( diff --git a/t/db_dependent/Circulation/ReturnClaims.t b/t/db_dependent/Circulation/ReturnClaims.t index 96c2a05e96..267c831a71 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 4382ff69a0..2f6d326fdf 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 8c81503765..876d882c05 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 ccc400684f..4859ef4076 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 17980bb7ce..cc44f751f7 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 b1f18cbce0..7d21f62553 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 8a1e5c8976..8eb52d443d 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 2b00d54a33..aff60236c2 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 f8c8b61f2a..1da7c87357 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 ad447dc0a6..7256476113 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 458f0b28fb..016238ed22 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 8cb3b07b03..aea0205008 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 e6b9296e29..979c4a79dd 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 5010da6e55..194d997f63 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 3c9a882f55..972b302d60 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 432c859ade..c5f5a8f790 100755 --- a/t/db_dependent/CourseReserves/CourseItems.t +++ b/t/db_dependent/CourseReserves/CourseItems.t @@ -24,7 +24,8 @@ use C4::CourseReserves 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 c98088d928..8d430fd35c 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 925cf493b9..ada2984d4e 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 ac506e4eff..0dbfb84016 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 78dd77f77e..a7ad1faf0e 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 67360f92e2..9ae973403b 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 9207ea2761..a692834e2e 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 5b4ecbdbe4..1356bca8a0 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 ade6e83a48..efdd7da4ac 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 cb517426ba..23e42c4291 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 1a7f43491a..03bb230248 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 bc6ef88148..0ada9ef32e 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 c2337d3b14..692a3d778b 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 45677a1e51..c78a06e11e 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 a26fa5fb0c..fdcb06423f 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 ddadaa157e..616145d215 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 73594fdfa7..66df3e083e 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 c15ae674e9..3095475fed 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 6a420a383f..8cccec0828 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 4016d9686c..2e51162bf3 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 a521045969..fc23285f52 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 5570d008a3..fc053c694c 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 6f310a9fb7..cb65fab2d8 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 3603c45fb0..79dff9425b 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 d93bbdd46b..e9c178ebd8 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 f010d00b13..986a8b354c 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 37e9ebf9fc..2a798f1880 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 c13d7586e7..7771d8aebd 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 3f6148ee52..eca958d51c 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 ad2e4911ab..07e0f1cfa6 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 8267874a85..fa25b5d107 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 dd851dd9a8..f1b593219c 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 b7bca18e76..9d629c543a 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 a70cccfa88..8a9bb71ead 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 7b46462978..ec1491db84 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 93facad3d1..516ac51fb6 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 ff1c6fe02b..633aba7f41 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 43e01562af..9fdc443677 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 1875bd78c6..430abb090a 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 1a4b32ff1d..ad7b9410c7 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 0f7b7f21b5..1d6a94c362 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 707c8f5082..288e9ee646 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 5131f76e63..6a931566a8 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 2c6955fca5..23d1da36c7 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 85ce8280b3..6a34b43b4b 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 3de1619b06..586fb1c755 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 => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::MockModule; use Test::Exception; diff --git a/t/db_dependent/Koha/ArticleRequests.t b/t/db_dependent/Koha/ArticleRequests.t index 2b02f24d17..1e1434d3e9 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 df96a54ea2..c43c58dc95 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 e53ddf2d2f..9e3adf612a 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 c4b045801c..cbf32dd98b 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 fdb9587f37..1669e4fd32 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 a35f0863f5..0202f15d3a 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 8d3f9fa5b7..c40f224825 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 cf4aab5b96..e9d8904305 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 72002d9897..148aab49fc 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 d8a1ca9c2d..b8b59c7e61 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 2ebd32230d..11594cbd13 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 521a0a2f8d..1ce4db0bd9 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 02bf645391..02b9a61654 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 6f02ac7a14..9d8f5a3c2f 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 66a5c0cbec..84f5745fb9 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 78342ab414..d6a7be8448 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 e8179b728f..0cd7491d15 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 => 40; +use Test::NoWarnings; +use Test::More tests => 41; 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 13e2558baf..163917bcbc 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 0947b0c846..c8cf3eba71 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 9b9aea2901..a2af91bcb4 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 => 2; +use Test::NoWarnings; +use Test::More tests => 3; 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 577f551404..f3dddf4b80 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 e92e23db9b..092f7e0de1 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 eb9a12fffb..83959de173 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 aeef2556c9..ee4f2fc065 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 b348bed6f9..5fa9fdcc21 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 97a8151df7..29d3022997 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 6845930d3d..1d085a77bd 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 acf429885a..f9f065eac7 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 105c43cb45..a439bf33d3 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 0321906d30..e535dea8ec 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 844880d777..176cf82e70 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 c28833ff79..f506d54779 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 62571c3588..11dfd7cb6b 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 dbac7133e3..b19d4d5d46 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 a1a0295099..a3945abf65 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 388d086c97..30d396e456 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 96bc5bfd3d..4d283bb995 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 213bf334f5..81147431d2 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 a5e7b329c7..034ec8da6e 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 d7d85b13d0..92bd561c60 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 fb2f4a7030..801aa99775 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 c005989bb7..b2377edd21 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 e7c71c48d0..b62eb911e4 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 2717520c04..9f09dec837 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 aca225f411..30f69d8b0b 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 de9161e2e1..c5085ae4ce 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 cf673517ea..c12ae084bf 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 a4a4fdddd9..10f8940aa6 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 874141f081..7bee25b881 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 23c990ad0b..3a565a93bf 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 179a437049..42d0c007b0 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 c66e4e400f..329ab74cc3 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 b0a623dfc2..3a5ec895b8 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 527b6988f7..4b84be5744 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 2f560980d9..a27dd02ed8 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 f7fa7616e5..8bafed32c1 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 ad2df153fa..2bcebfa2b0 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 b90dc8abb6..cba5d0dce0 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 7ea29f277e..bf64f077b8 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 24312257bf..4ed2086329 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 f69d34b5a4..8edec4fb66 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 d647679c2e..a60d099aa2 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 cc0c471d5b..e09c547a7e 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 2c1106f926..2e013946f7 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 072b74b089..49593386f5 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 3f28b0fcb5..d0638e247d 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 1de386528b..f822d52df9 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 bd3f43b5dc..06fe7af209 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 c41c746363..259ac5581a 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 e98d232dd9..6915a32e8c 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 31f0a4384f..abecaf17e4 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 acbd18bcf2..d1628238ae 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 79af2f161d..92158644e2 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 b182c70848..d414a72b37 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 acc6eef007..352aac8535 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 31ee1af460..30d92201f2 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 eaba531711..bf527690cf 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 32e15fda1a..ce8988382e 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 4212ff4feb..ae66d333ef 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 c35b1e88e7..c1f56998b5 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 bc67224844..338b8829a9 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 4c05ea653e..88dddbca0f 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 233e1a8324..f2ca2a3b6a 100755 --- a/t/db_dependent/Koha/Notice_Util.t +++ b/t/db_dependent/Koha/Notice_Util.t @@ -20,7 +20,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 c63516a0e5..b58f58cbc0 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 4dc716e8f8..3e022b129f 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 4d07a4cfb0..51ee06c7d9 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 37e90b1e55..b02c733a8f 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 d630d21c5a..f6a77b81f5 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 e419015a9e..a1ce74fe92 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 7c7dca616b..37d4fba236 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 401bdb280b..4e37be49ac 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 c561355c45..97015d0c21 100755 --- a/t/db_dependent/Koha/Patron/Attribute.t +++ b/t/db_dependent/Koha/Patron/Attribute.t @@ -20,7 +20,8 @@ use Modern::Perl; use JSON qw( to_json ); -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/Patron/Attribute/Types.t b/t/db_dependent/Koha/Patron/Attribute/Types.t index 222251a6de..6dc706fb22 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 24ba91545b..1cc9866936 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 27c5725e5a..14504efccf 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 aafd88db38..08dba75f55 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 9c8c26264b..0961c2cd1a 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 e25a9b5faa..b17f6a1247 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 8f9af16e37..b16982bd15 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 436caab534..046674eda2 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 5aee0a52a2..07dd87c0ee 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 fadb843a54..1a6fcf7545 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 0ce23763dd..689a9a5b85 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 d8b6457629..5943ba6464 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 2f143118e6..9fdffb821d 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 610876c91e..bd62a99b23 100755 --- a/t/db_dependent/Koha/Patron_generate_userid.t +++ b/t/db_dependent/Koha/Patron_generate_userid.t @@ -21,7 +21,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 854a12060e..8027066f4b 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 020248ad73..cbaaf70482 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 1bb7e3c26c..eb1a870147 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 c712340119..107b950e64 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 f8c11de75e..73220cdb0b 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 => 6; +use Test::NoWarnings; +use Test::More tests => 7; 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 a017b25079..57bc70edb8 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 b2df421f8a..a3b219bc60 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 c8b8163b37..22c950b795 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 5682c5a7a6..7cc2a19fca 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 e324ee409f..077225f86e 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 1c86bc65a4..3a2d8bd90f 100755 --- a/t/db_dependent/Koha/REST/Plugin/Auth/IdP.t +++ b/t/db_dependent/Koha/REST/Plugin/Auth/IdP.t @@ -68,7 +68,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 3efbc1f7a4..36b2894222 100755 --- a/t/db_dependent/Koha/REST/Plugin/Objects.t +++ b/t/db_dependent/Koha/REST/Plugin/Objects.t @@ -134,7 +134,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 2453da8cd3..be36e923a7 100755 --- a/t/db_dependent/Koha/REST/Plugin/Pagination.t +++ b/t/db_dependent/Koha/REST/Plugin/Pagination.t @@ -89,7 +89,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 9138c5a7ee..fe8db7536c 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 d73b26f9fa..4dc1ce701d 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 88f7ee6e64..e5049bc16e 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 cdd83b1ca1..4a1d17a9de 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 05ffc0b47b..e44ad14111 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 ce9b80b73f..205b1df60a 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 8fcc07dbad..4e801981e3 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 7834ee4cf8..f0f1a2f708 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 bd7ddeb851..7a73b9725f 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 195ebd0f3b..e7b38335bf 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 c3c43d1fc4..b1ed5d1cb6 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 bcc44698f8..dce95eefae 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 9b3938fd19..dc7af18b25 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 f7838a3c16..5c70c0a85d 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 5d169de939..67d3047dea 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 2abbf60408..e9734b7c18 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 b576e8f545..4e710c9d53 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 JSON qw( encode_json ); use Koha::Database; diff --git a/t/db_dependent/Koha/Session.t b/t/db_dependent/Koha/Session.t index 237d0c1314..e071abfd02 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 t::lib::Mocks; diff --git a/t/db_dependent/Koha/SharedContent.t b/t/db_dependent/Koha/SharedContent.t index 14bc0c82de..8814531539 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 23856a12f4..7d4f37a001 100755 --- a/t/db_dependent/Koha/Statistic.t +++ b/t/db_dependent/Koha/Statistic.t @@ -18,7 +18,8 @@ use Modern::Perl; use Test::MockModule; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Warn; use Koha::DateUtils qw(dt_from_string); 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 c5c98dffc9..80a1a639ba 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 63635504f1..f69bab82d4 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 83ad435fdd..c5eaf607a1 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 ccf5c5af9b..cf959d868e 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 dd032d22f3..c47f80f999 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 e66aa36697..f93b75f341 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 ce18008246..1d31227211 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 888d3c1c55..9bef993a69 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 9620fe8550..68132ecfb9 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 70cad83f87..5068d78865 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 cfaa4b97d7..f783764f47 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 37f14a487a..bde7ef9419 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 f17d6d3e23..d8aa7b658e 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 a8b6393479..7bba99c8c2 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 08a5289bad..a2bca2f640 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 c31fdc04fb..46eae6755a 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 cd7d3cbd7c..66cdfc10c1 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 6354684521..ab63fc34a3 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 00556935db..7a90485648 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 36c1bda5c7..48f1a0cd2c 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 cdba853253..dbe9b3fa1c 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 1d1557fc63..e7671fe732 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 21b5cb2a4a..b8e0fba962 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 ea9071cc6a..39ddc78732 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 7ac2145f65..6e13b053b1 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 47cc4d6263..dc1951378c 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 556617f37f..9ccb8ddf4b 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 19dbaec6b7..e7455b4a87 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 0942a2e4de..30584be13d 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 1815634dd0..7eaed22b73 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 3156dee252..9d5fc58333 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 f435beb716..9a1bf2e23c 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 eaa29a4111..4ac9b1b07e 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 63fe00c1de..57fe860e9c 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 b6de7ee6f5..5ec36a9ba6 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 4ea7b72a88..304e86aa27 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 53b608e9cb..6f061d415e 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 3e2e77d6d3..00dc04d937 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 7664540d9a..1a14e3beea 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 0ac1f928c2..ae31af4ac0 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 c190a334bf..c5be4abb5e 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 9e92920df2..38a917ddf0 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 b26e6e2b3c..1b6cce305a 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 13e1ab464a..90bb355be7 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 da21466fec..5a5befce89 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 975aef6a77..4fcef88b76 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 7e1650829d..12b45d66dd 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 302f223f62..faeb1570ac 100755 --- a/t/db_dependent/Members/IssueSlip.t +++ b/t/db_dependent/Members/IssueSlip.t @@ -18,7 +18,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 7e84b7eb82..9025e756de 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 ea05d7ec7d..ceb23d0057 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 c510023c5b..a9bdcdab1d 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 6dda34f22b..b97d5a6f88 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 d8d11cd9d0..1c31c64e73 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 9bb726ce7b..6cf8de03d4 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 332e9d357d..32d5dc0f3e 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 9ecea5bf4d..6e10166a8a 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 f22eb7706d..0a86bac408 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 57fdde783b..cb5480d5e7 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 c3ac52ff8c..d7cca9dd5a 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 f7caec3b47..93ed2130d6 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 6ed0f9a5a7..09495e3c15 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 a0e145834c..c9749d83bb 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 8b28613f42..bc32e02edf 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 2f02c3ef4b..cec596f0a5 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 70d476f0f9..469884298b 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 52090b4b3e..d3c4a68ec3 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 ad63834212..e8ee2fd4f7 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 5ce15e5136..1420b8406d 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 43d4c2b204..487e42f6c3 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 53122066a3..8e04723e40 100755 --- a/t/db_dependent/Record/Record.t +++ b/t/db_dependent/Record/Record.t @@ -25,8 +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 1dd1000e39..aeb06d9dc0 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 37a62ea6db..4797b46c6a 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 421f12f129..d81a4f9759 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 1e4e34d93a..15059edcc9 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 => 13; +use Test::NoWarnings; +use Test::More tests => 14; use Test::Warn; use t::lib::TestBuilder; diff --git a/t/db_dependent/Reserves/AutoUnsuspendReserves.t b/t/db_dependent/Reserves/AutoUnsuspendReserves.t index 29595aa3a4..ce4b1b4c0b 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 6c1dfc97cc..5bd241d900 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 6f751c5fb6..b3b3fb3577 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 342db33e6f..a410e1adc6 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 c7b151d1a0..23528de050 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 ); diff --git a/t/db_dependent/SIP/ILS.t b/t/db_dependent/SIP/ILS.t index 0e38cd4009..a397cf19fb 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 777e73fe91..de112b5989 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 d43e85db3d..fc6e03bd28 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 eb476d1614..e1e7e40f71 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 c8590edc54..1bee4c17e7 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 4896f79e67..5fa7ec17d6 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 860344ad05..ceb5f49cc2 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 5f9ea770ea..9ddc4719dd 100755 --- a/t/db_dependent/Serials.t +++ b/t/db_dependent/Serials.t @@ -18,7 +18,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( diff --git a/t/db_dependent/Serials/Claims.t b/t/db_dependent/Serials/Claims.t index 94edcdae9f..87e197b4cf 100755 --- a/t/db_dependent/Serials/Claims.t +++ b/t/db_dependent/Serials/Claims.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 18; +use Test::NoWarnings; +use Test::More tests => 19; 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 4d2925e9c9..56aae261f3 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 3e3b361220..f026c9d27f 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 6ba6d5f1ea..3c25365bf9 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 098a9f1d54..fb43902217 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 95e23a0a63..06e23b28a1 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 b7b9712b6b..0524a04d51 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 bb50c448be..093cee9728 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 eb0e7ba1de..20bae15add 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 04f5e600b4..865248b348 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 7716c1ef4f..6cb3e8cac4 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 c1ea2536a7..c33f0c4dec 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 d5e534834d..f49c9c9c31 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 90abf8bfc9..a115b98d45 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 8e6cc00623..809c14d7ba 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 0ebca2e75c..4547e035fe 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 b9e0493ac5..04e59c1b74 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 767848cb1f..45e5343741 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 3d4f14074b..f50295a17b 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 c6234fad8d..d1c7191895 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 229ef7d95b..4c614f45e0 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 0a6aa66a6e..efae49f7a8 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 75d474e0e0..d09e3fd2c3 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 2a3e489951..4afbf02dcb 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 e531083be6..eceb8d0e08 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 b43b677a29..d91dc57e58 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 2978ff0f0a..e4c0dd43cf 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 f92e906e8c..698a499caa 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 => 6; +use Test::NoWarnings; +use Test::More tests => 7; use Test::Deep; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/TestBuilder.t b/t/db_dependent/TestBuilder.t index cf2d85caf8..121849fd94 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 2b57781764..469ff1200b 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 7604937acd..c0d5d1b905 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 e1f054e723..4a5f1fe266 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 6ef580fbad..1df952df22 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 a7ce290d64..1f58874f9e 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 82a9fe3ab1..fa4c3e468f 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 c1824c4fee..b05a0747ce 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 0d7afa38c7..9ecc657bb0 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 d9d6951924..0320f7ff99 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 e6fe8adccd..30f3bb1f69 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 28a8fe004f..29b0271ad6 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 a3bf90bce5..68bfe20d45 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 e5c4d9c728..c314561fb9 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 21e0083aad..4d23949b4f 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 f3d66e678a..114352248d 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 a7200fb020..0ab637cabf 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 2233461b73..7ca90ee042 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 c5ab5cff70..7dd4c385d2 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 4a5668e7eb..226c58aaa6 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 4b86748282..8aa1fdddb7 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 => 2; +use Test::NoWarnings; +use Test::More tests => 3; 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 7791aefcb9..dad1ad5750 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 7684c5d2bb..700fd4a93f 100755 --- a/t/db_dependent/api/v1/clubs_holds.t +++ b/t/db_dependent/api/v1/clubs_holds.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 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 b0f8705c16..7ffab44e42 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 18f400a1ef..0e3b763555 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 442b2d8812..77e83773e6 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 2cd53ea5e9..81efb9c026 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 01e73f9804..16c7902f63 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 23e03d1914..a7f2041363 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 eae6bff8eb..4596335bc8 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 7714e85c39..f6d6e6df0a 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 08454130ba..4ba2cbfa25 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 262337be87..58fc4f9ccc 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 8d7d2307cd..4017c43531 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 652511476c..9e33b37ba4 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 838aec1cdf..be961d8a87 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 a4d19f215c..6a39dff508 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 0fe47f1420..e8b385809b 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 95c676a96f..f5b4a15c97 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 f358de297e..5656c1a00b 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 2df09e67b4..1037e9dbcb 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 9aa00fa6e3..06cfb7d622 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 bc6734f69f..22fa3752a6 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 fa9702fc3b..acf9a76d15 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 f0c6035ad4..74b025d96d 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 850e422405..6ca12dd053 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 c8d3fd4b57..316d99774f 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 da7eeed122..8306760ff9 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 c21c1dfced..569db8e178 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 1bdf2e7e05..64bcf4e5e8 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 fc4b0eb90b..bd53a0918f 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 196401bd7a..cf8f6c5892 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 2b922b8058..577e9fe029 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 100f6b427f..d088995dd7 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 72646dad71..82ba69faa5 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 6a7c592109..0acb640d1b 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 b095ef6fbd..1744afffa8 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 5b5e8eedaf..e6a45ba94e 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 c373bf8782..9155a759c8 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 58cdfac7af..c575555823 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 51d7dd5cc2..b0df81be03 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 c783d67922..1164b9bb0a 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 1d7aa4bb32..09ed305fd4 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 740cddf1e6..e3132ea659 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") . '/installer/data/mysql/kohastructure.sql' ); diff --git a/t/db_dependent/check_sysprefs.t b/t/db_dependent/check_sysprefs.t index 9bd0102f22..868ceb0932 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 307a465c03..7d05083f40 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 cd6e30d905..49c3cff2a6 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 4e9c072789..48ad885611 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 f99a164eff..a0c91d5967 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 7741a7836d..cf198018aa 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 e5e3db5d66..04cb603063 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 64cec37e71..03a13ddb0f 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 6e31eb8f95..96315668fd 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 0a7a7bb880..fe636a655b 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 32c62f1516..1be7bd39a1 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 e76505711f..7b127ca272 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 6424da0da6..bf513c09f7 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 93998a1df6..75f3b69ec0 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 b759333c69..3f472560ef 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 96a06be29f..56d336e977 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 9f8f5a786b..634c09f8f7 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 767ad36172..a1d6ee8d5a 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 1a0e538b49..43f2a28d6b 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 6770fe355b..82743a54ff 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 6b1bb10bd0..2a02d953c7 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 c83514865c..390969887b 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;