From 391d26d76e0c733941a29ef5331097080c640abb 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. --- t/00-check-atomic-updates.t | 1 + t/00-deprecated.t | 3 ++- t/00-load.t | 1 + t/00-merge-conflict-markers.t | 3 ++- t/00-testcritic.t | 1 + t/00-valid-xml.t | 1 + t/Acquisition/CanUserManageBasket.t | 3 ++- t/Auth.t | 3 ++- t/AuthoritiesMarc_MARC21.t | 3 ++- t/AuthoritiesMarc_UNIMARC.t | 3 ++- t/Barcodes_EAN13.t | 3 ++- t/Barcodes_annual.t | 3 ++- t/Barcodes_hbyymmincr.t | 3 ++- t/Barcodes_incremental.t | 3 ++- t/Biblio.t | 1 + t/Biblio/TransformHtmlToXml.t | 3 ++- t/Biblio2.t | 1 + t/Budgets.t | 3 ++- t/Budgets/CanUserModifyBudget.t | 3 ++- t/Budgets/CanUserUseBudget.t | 3 ++- t/Charset.t | 3 ++- t/Circulation/AgeRestrictionMarkers.t | 3 ++- t/Circulation_barcodedecode.t | 3 ++- t/ClassSortRoutine.t | 3 ++- t/ClassSortRoutine_Dewey.t | 3 ++- t/ClassSortRoutine_Generic.t | 3 ++- t/ClassSortRoutine_LCC.t | 3 ++- t/ClassSource.t | 3 ++- t/Context.t | 3 ++- t/Contract.t | 3 ++- t/CookieManager.t | 3 ++- t/Creators.t | 3 ++- t/DateUtils.t | 3 ++- t/EdiInvoice.t | 3 ++- t/Ediorder.t | 3 ++- t/Ediordrsp.t | 3 ++- t/External/BakerTaylor.t | 3 ++- t/External/Syndetics.t | 3 ++- t/Form_MessagingPreferences.t | 3 ++- t/HtmlTags.t | 3 ++- t/Installer_PerlModules.t | 3 ++- t/ItemCirculationAlertPreference.t | 3 ++- t/Koha/Auth/Permissions.t | 3 ++- t/Koha/Authority/ControlledIndicators.t | 3 ++- t/Koha/Config.t | 3 ++- t/Koha/Database/Columns.t | 3 ++- t/Koha/DateTime/Format/RFC3339.t | 1 + t/Koha/DateTime/Format/SQL.t | 1 + t/Koha/Email.t | 3 ++- t/Koha/Exceptions.t | 3 ++- t/Koha/I18N.t | 3 ++- t/Koha/Installer/Output.t | 3 ++- t/Koha/ItemType.t | 3 ++- t/Koha/Middleware/RealIP.t | 3 ++- t/Koha/Middleware/SetEnv.t | 3 ++- t/Koha/Object/Message.t | 3 ++- t/Koha/Plugins/SafeURL.t | 3 ++- t/Koha/Plugins/Tab.t | 3 ++- t/Koha/REST/Plugin/Query.t | 3 ++- t/Koha/Result/Boolean.t | 3 ++- t/Koha/Script.t | 3 ++- t/Koha/Script_cron.t | 3 ++- t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t | 3 ++- t/Koha/SearchEngine/Elasticsearch/Search.t | 3 ++- t/Koha/SearchEngine/Search.t | 3 ++- t/Koha/SearchEngine/Zebra/QueryBuilder.t | 3 ++- t/Koha/Util/MARC.t | 3 ++- t/Koha/Util/Navigation.t | 3 ++- t/Koha/Util/Normalize.t | 3 ++- t/Koha/Util/OpenDocument.t | 3 ++- t/Koha/Z3950responder.t | 3 ++- t/Koha_MetadataRecord.t | 3 ++- t/Koha_SearchEngine_Elasticsearch_Browse.t | 1 + t/Koha_Template_Plugin_HtmlId.t | 3 ++- t/Koha_Template_Plugin_Koha.t | 3 ++- t/Koha_Util_FrameworkPlugin.t | 3 ++- t/Koha_Util_MARC.t | 3 ++- t/Koha_XSLT_HTTPS.t | 3 ++- t/Labels_split_Regex.t | 3 ++- t/Labels_split_ccn.t | 1 + t/Labels_split_ddcn.t | 1 + t/Labels_split_lccn.t | 1 + t/Languages.t | 3 ++- t/Logger.t | 3 ++- t/Makefile.t | 3 ++- t/Members_Messaging.t | 3 ++- t/Number/Price.t | 3 ++- t/OpenLibrarySearch.t | 3 ++- t/Output.t | 3 ++- t/Output_JSONStream.t | 3 ++- t/Patroncards.t | 3 ++- t/Patroncards_Batch.t | 3 ++- t/Patroncards_Lib.t | 3 ++- t/Patroncards_Patroncard.t | 3 ++- t/Patroncards_Profile.t | 3 ++- t/Patroncards_Template.t | 3 ++- t/RecordProcessor.t | 1 + t/Ris.t | 3 ++- t/SIP/Sip.t | 3 ++- t/SMS.t | 3 ++- t/Scheduler.t | 3 ++- t/Scrubber.t | 3 ++- t/Search.t | 3 ++- t/Search/History.t | 3 ++- t/Search/buildQuery.t | 3 ++- t/Search_PazPar2.t | 3 ++- t/Serials/GetNextSeq.t | 3 ++- t/Serials/ModSerialStatus.t | 3 ++- t/SimpleMARC.t | 3 ++- t/SuggestionEngine.t | 1 + t/SuggestionEngine_AuthorityFile.t | 3 ++- t/Template/Utils.t | 3 ++- t/Test/Dates.t | 3 ++- t/TmplToken.t | 3 ++- t/Token.t | 3 ++- t/db_dependent/00-strict.t | 1 + t/db_dependent/Accounts.t | 3 ++- t/db_dependent/Acquisition.t | 3 ++- t/db_dependent/Acquisition/CancelReceipt.t | 3 ++- t/db_dependent/Acquisition/FillWithDefaultValues.t | 3 ++- t/db_dependent/Acquisition/GetBasketAsCSV.t | 3 ++- t/db_dependent/Acquisition/GetBasketGroupAsCSV.t | 3 ++- t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t | 3 ++- t/db_dependent/Acquisition/GetOrdersByBiblionumber.t | 1 + t/db_dependent/Acquisition/Invoices.t | 3 ++- t/db_dependent/Acquisition/NewOrder.t | 3 ++- t/db_dependent/Acquisition/OrderFromSubscription.t | 3 ++- t/db_dependent/Acquisition/OrderUsers.t | 3 ++- t/db_dependent/Acquisition/StandingOrders.t | 3 ++- t/db_dependent/Acquisition/TransferOrder.t | 3 ++- t/db_dependent/Acquisition/close_reopen_basket.t | 3 ++- t/db_dependent/Acquisition/populate_order_with_prices.t | 3 ++- t/db_dependent/Amazon.t | 3 ++- t/db_dependent/ArticleRequests.t | 3 ++- t/db_dependent/AudioAlerts.t | 3 ++- t/db_dependent/Auth/haspermission.t | 3 ++- t/db_dependent/AuthUtils.t | 3 ++- t/db_dependent/Auth_with_cas.t | 3 ++- t/db_dependent/Auth_with_ldap.t | 3 ++- t/db_dependent/AuthoritiesMarc.t | 3 ++- t/db_dependent/AuthoritiesMarc/MARC21.t | 3 ++- t/db_dependent/AuthoritiesMarc_GetTagsLabels.t | 3 ++- t/db_dependent/Authority/Merge.t | 3 ++- t/db_dependent/Authority/MergeRequests.t | 3 ++- t/db_dependent/Authority/Subfields.t | 3 ++- t/db_dependent/Authority/Tags.t | 3 ++- t/db_dependent/Barcodes.t | 3 ++- t/db_dependent/Barcodes_ValueBuilder.t | 3 ++- t/db_dependent/Biblio/Isbd.t | 3 ++- t/db_dependent/Biblio/MarcOverlayRules.t | 3 ++- t/db_dependent/Biblio/ModBiblioMarc.t | 3 ++- t/db_dependent/Biblio/TransformHtmlToMarc.t | 3 ++- t/db_dependent/Biblio/TransformKohaToMarc.t | 3 ++- t/db_dependent/Biblio/TransformMarcToKoha.t | 3 ++- t/db_dependent/Biblio_holdsqueue.t | 3 ++- t/db_dependent/Breeding.t | 3 ++- t/db_dependent/Breeding_Auth.t | 3 ++- t/db_dependent/Budgets/CloneBudgetHierarchy.t | 1 + t/db_dependent/Cache.t | 3 ++- t/db_dependent/Calendar.t | 3 ++- t/db_dependent/Charset.t | 3 ++- t/db_dependent/Circulation.t | 3 ++- t/db_dependent/Circulation/Branch.t | 3 ++- t/db_dependent/Circulation/CalcDateDue.t | 3 ++- t/db_dependent/Circulation/CalcFine.t | 3 ++- t/db_dependent/Circulation/CheckIfIssuedToPatron.t | 3 ++- t/db_dependent/Circulation/CheckValidBarcode.t | 3 ++- t/db_dependent/Circulation/GetHardDueDate.t | 3 ++- t/db_dependent/Circulation/GetPendingOnSiteCheckouts.t | 3 ++- t/db_dependent/Circulation/GetTopIssues.t | 3 ++- t/db_dependent/Circulation/IsItemIssued.t | 3 ++- t/db_dependent/Circulation/MarkIssueReturned.t | 3 ++- t/db_dependent/Circulation/NoIssuesChargeGuarantees.t | 3 ++- t/db_dependent/Circulation/OfflineCirculation.t | 3 ++- t/db_dependent/Circulation/OfflineOperation.t | 3 ++- t/db_dependent/Circulation/ReturnClaims.t | 3 ++- t/db_dependent/Circulation/Returns.t | 3 ++- t/db_dependent/Circulation/StoreLastBorrower.t | 3 ++- t/db_dependent/Circulation/SwitchOnSiteCheckouts.t | 3 ++- t/db_dependent/Circulation/TooMany.t | 3 ++- t/db_dependent/Circulation/_CalculateAndUpdateFine.t | 3 ++- t/db_dependent/Circulation/dateexpiry.t | 3 ++- t/db_dependent/Circulation/issue.t | 3 ++- t/db_dependent/Circulation/maxsuspensiondays.t | 3 ++- t/db_dependent/Circulation/transferbook.t | 3 ++- t/db_dependent/Circulation/transfers.t | 3 ++- t/db_dependent/ClassSources.t | 3 ++- t/db_dependent/Clubs.t | 3 ++- t/db_dependent/Context.t | 3 ++- t/db_dependent/Contract.t | 3 ++- t/db_dependent/CourseReserves.t | 3 ++- t/db_dependent/CourseReserves/CourseItems.t | 3 ++- t/db_dependent/Creators/Lib.t | 3 ++- t/db_dependent/DecreaseLoanHighHolds.t | 3 ++- t/db_dependent/Exporter/Record.t | 3 ++- t/db_dependent/Filter_MARC_ViewPolicy.t | 3 ++- t/db_dependent/Fines.t | 3 ++- t/db_dependent/FrameworkPlugin.t | 3 ++- t/db_dependent/Heading.t | 3 ++- t/db_dependent/Heading_MARC21.t | 3 ++- t/db_dependent/Hold.t | 3 ++- t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t | 3 ++- t/db_dependent/Holds/ExpireReservesAutoFill.t | 3 ++- t/db_dependent/Holds/HoldFulfillmentPolicy.t | 3 ++- t/db_dependent/Holds/HoldItemtypeLimit.t | 3 ++- t/db_dependent/Holds/LocalHoldsPriority.t | 3 ++- t/db_dependent/Holds/RevertWaitingStatus.t | 3 ++- t/db_dependent/Holds/WaitingReserves.t | 3 ++- t/db_dependent/HoldsQueue.t | 3 ++- t/db_dependent/Holidays.t | 3 ++- t/db_dependent/ILSDI_Services.t | 3 ++- t/db_dependent/ImportBatch.t | 3 ++- t/db_dependent/ImportExportFramework.t | 3 ++- t/db_dependent/Installer.t | 3 ++- t/db_dependent/Items.t | 3 ++- t/db_dependent/Items/AutomaticItemModificationByAge.t | 3 ++- t/db_dependent/Items/GetAnalyticsCount.t | 3 ++- t/db_dependent/Items/GetItemsForInventory.t | 3 ++- t/db_dependent/Koha.t | 3 ++- t/db_dependent/Koha/Account.t | 3 ++- t/db_dependent/Koha/Account/DebitType.t | 3 ++- t/db_dependent/Koha/Account/DebitTypes.t | 3 ++- t/db_dependent/Koha/Account/Line.t | 3 ++- t/db_dependent/Koha/Account/Lines.t | 3 ++- t/db_dependent/Koha/Account/Offsets.t | 3 ++- t/db_dependent/Koha/Acquisition/Basket.t | 3 ++- t/db_dependent/Koha/Acquisition/Baskets.t | 3 ++- t/db_dependent/Koha/Acquisition/Budgets.t | 3 ++- t/db_dependent/Koha/Acquisition/Currencies.t | 3 ++- t/db_dependent/Koha/Acquisition/Fund.t | 3 ++- t/db_dependent/Koha/Acquisition/Funds.t | 3 ++- t/db_dependent/Koha/Acquisition/Invoice.t | 3 ++- t/db_dependent/Koha/Acquisition/Invoice/Adjustments.t | 3 ++- t/db_dependent/Koha/Acquisition/Order.t | 3 ++- t/db_dependent/Koha/Acquisition/Orders.t | 3 ++- t/db_dependent/Koha/ActionLogs.t | 3 ++- t/db_dependent/Koha/AdditionalField.t | 3 ++- t/db_dependent/Koha/ApiKey.t | 3 ++- t/db_dependent/Koha/ArticleRequest.t | 3 ++- t/db_dependent/Koha/ArticleRequests.t | 3 ++- t/db_dependent/Koha/Auth/Identity/Provider.t | 3 ++- t/db_dependent/Koha/Authorities.t | 3 ++- t/db_dependent/Koha/BackgroundJob/BatchCancelHold.t | 3 ++- t/db_dependent/Koha/BackgroundJob/BatchDeleteAuthority.t | 3 ++- t/db_dependent/Koha/BackgroundJob/BatchDeleteBiblio.t | 3 ++- t/db_dependent/Koha/BackgroundJob/BatchDeleteItem.t | 3 ++- t/db_dependent/Koha/BackgroundJob/BatchUpdateAuthority.t | 3 ++- t/db_dependent/Koha/BackgroundJob/BatchUpdateBiblio.t | 3 ++- .../Koha/BackgroundJob/BatchUpdateBiblioHoldsQueue.t | 3 ++- t/db_dependent/Koha/BackgroundJob/BatchUpdateItem.t | 3 ++- t/db_dependent/Koha/BackgroundJob/CreateEHoldingsFromBiblios.t | 3 ++- t/db_dependent/Koha/BackgroundJob/ErmSushiHarvester.t | 3 ++- t/db_dependent/Koha/BackgroundJob/ImportKBARTFile.t | 3 ++- t/db_dependent/Koha/BackgroundJob/MARCImportCommitBatch.t | 3 ++- t/db_dependent/Koha/BackgroundJob/MARCImportRevertBatch.t | 3 ++- t/db_dependent/Koha/BackgroundJob/PseudonymizeStatistic.t | 3 ++- t/db_dependent/Koha/BackgroundJob/StageMARCForImport.t | 3 ++- t/db_dependent/Koha/BackgroundJob/UpdateElasticIndex.t | 3 ++- t/db_dependent/Koha/BackgroundJobs.t | 3 ++- t/db_dependent/Koha/BackgroundJobs/BatchDeleteBiblio.t | 3 ++- t/db_dependent/Koha/BackgroundJobs/BatchDeleteItem.t | 3 ++- t/db_dependent/Koha/BackgroundJobs/BatchUpdateBiblio.t | 3 ++- t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t | 3 ++- t/db_dependent/Koha/BackgroundJobs/StageMARCForImport.t | 3 ++- t/db_dependent/Koha/Biblio.t | 3 ++- t/db_dependent/Koha/Biblio/ItemGroups.t | 3 ++- t/db_dependent/Koha/Biblio/Metadata.t | 3 ++- t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC.t | 3 ++- t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC/MARC21.t | 3 ++- t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC/UNIMARC.t | 3 ++- t/db_dependent/Koha/Biblio/host_record.t | 3 ++- t/db_dependent/Koha/BiblioFrameworks.t | 3 ++- t/db_dependent/Koha/Biblios.t | 3 ++- t/db_dependent/Koha/Bookings.t | 3 ++- t/db_dependent/Koha/Cash/Register.t | 3 ++- t/db_dependent/Koha/Cash/Register/Action.t | 3 ++- t/db_dependent/Koha/Cash/Register/Cashup.t | 3 ++- t/db_dependent/Koha/Cash/Register/Cashups.t | 3 ++- t/db_dependent/Koha/Charges/Fees.t | 3 ++- t/db_dependent/Koha/Charges/Sales.t | 3 ++- t/db_dependent/Koha/Checkout.t | 3 ++- t/db_dependent/Koha/Checkouts.t | 3 ++- t/db_dependent/Koha/Checkouts/Renewal.t | 3 ++- t/db_dependent/Koha/Checkouts/ReturnClaim.t | 3 ++- t/db_dependent/Koha/CirculationRules.t | 3 ++- .../CirculationRules/guess_article_requestable_itemtypes.t | 3 ++- t/db_dependent/Koha/Cities.t | 3 ++- t/db_dependent/Koha/ClassSortRules.t | 3 ++- t/db_dependent/Koha/ClassSources.t | 3 ++- t/db_dependent/Koha/ClassSplitRules.t | 3 ++- t/db_dependent/Koha/Club/Enrollment.t | 3 ++- t/db_dependent/Koha/Club/Hold.t | 3 ++- t/db_dependent/Koha/Config/SysPrefs.t | 3 ++- t/db_dependent/Koha/Course.t | 3 ++- t/db_dependent/Koha/Courses.t | 3 ++- t/db_dependent/Koha/CsvProfiles.t | 3 ++- t/db_dependent/Koha/CurbsidePickups.t | 3 ++- t/db_dependent/Koha/Database.t | 3 ++- t/db_dependent/Koha/Database/Commenter.t | 3 ++- t/db_dependent/Koha/Desks.t | 3 ++- t/db_dependent/Koha/ERM/Agreements.t | 3 ++- t/db_dependent/Koha/ERM/EUsage/CounterFile.t | 3 ++- t/db_dependent/Koha/ERM/EUsage/CounterLog.t | 3 ++- t/db_dependent/Koha/ERM/EUsage/SushiCounter.t | 3 ++- t/db_dependent/Koha/ERM/EUsage/UsageDataProvider.t | 3 ++- t/db_dependent/Koha/Edifact/File.t | 3 ++- t/db_dependent/Koha/Edifact/Order.t | 3 ++- t/db_dependent/Koha/Edifact/Transport.t | 3 ++- t/db_dependent/Koha/Filter/EmbedItems.t | 3 ++- t/db_dependent/Koha/Filter/EmbedItemsAvailability.t | 3 ++- t/db_dependent/Koha/Filter/ExpandCodedFields.t | 3 ++- t/db_dependent/Koha/Hold.t | 3 ++- t/db_dependent/Koha/Holds.t | 3 ++- t/db_dependent/Koha/ILL/Backend.t | 3 ++- t/db_dependent/Koha/ILL/Batch.t | 3 ++- t/db_dependent/Koha/ILL/Batch/Statuses.t | 3 ++- t/db_dependent/Koha/ILL/Batches.t | 3 ++- t/db_dependent/Koha/ILL/Comments.t | 3 ++- t/db_dependent/Koha/ILL/Request.t | 3 ++- t/db_dependent/Koha/ILL/Request/Attributes.t | 3 ++- t/db_dependent/Koha/ILL/Request/Config.t | 3 ++- t/db_dependent/Koha/ILL/Request/Logger.t | 3 ++- t/db_dependent/Koha/ILL/Request/SupplierUpdate.t | 3 ++- t/db_dependent/Koha/ILL/Request/SupplierUpdateProcessor.t | 3 ++- t/db_dependent/Koha/ILL/Request/Workflow/Availability.t | 3 ++- t/db_dependent/Koha/ILL/Request/Workflow/TypeDisclaimer.t | 3 ++- t/db_dependent/Koha/ILL/Requests.t | 3 ++- t/db_dependent/Koha/Import/Record/Auths.t | 3 ++- t/db_dependent/Koha/Import/Record/Biblios.t | 3 ++- t/db_dependent/Koha/Import/Record/Items.t | 3 ++- t/db_dependent/Koha/Import/Record/Matches.t | 3 ++- t/db_dependent/Koha/Import/Records.t | 3 ++- t/db_dependent/Koha/Item.t | 3 ++- t/db_dependent/Koha/Item/Attributes.t | 1 + t/db_dependent/Koha/Item/Search/Field.t | 3 ++- t/db_dependent/Koha/Item/Template.t | 3 ++- t/db_dependent/Koha/Item/Templates.t | 3 ++- t/db_dependent/Koha/Item/Transfer.t | 3 ++- t/db_dependent/Koha/Item/Transfers.t | 3 ++- t/db_dependent/Koha/ItemTypes.t | 3 ++- t/db_dependent/Koha/Items.t | 3 ++- t/db_dependent/Koha/Items/BatchUpdate.t | 1 + t/db_dependent/Koha/KeyboardShortcuts.t | 3 ++- t/db_dependent/Koha/Libraries.t | 3 ++- t/db_dependent/Koha/Library.t | 3 ++- t/db_dependent/Koha/Library/OverDriveInfos.t | 3 ++- t/db_dependent/Koha/MarcSubfieldStructures.t | 3 ++- t/db_dependent/Koha/Notice/Message.t | 3 ++- t/db_dependent/Koha/Notice/Template.t | 3 ++- t/db_dependent/Koha/Notice_Util.t | 3 ++- t/db_dependent/Koha/Notices.t | 3 ++- t/db_dependent/Koha/OAIHarvester.t | 3 ++- t/db_dependent/Koha/OAIServers.t | 3 ++- t/db_dependent/Koha/Object.t | 3 ++- t/db_dependent/Koha/Object/Mixin/AdditionalFields.t | 3 ++- t/db_dependent/Koha/Objects.t | 3 ++- t/db_dependent/Koha/Objects/Mixin/AdditionalFields.t | 3 ++- t/db_dependent/Koha/Objects/Mixin/ExtendedAttributes.t | 3 ++- t/db_dependent/Koha/Objects/Record/Collections.t | 3 ++- t/db_dependent/Koha/Old.t | 3 ++- t/db_dependent/Koha/Old/Checkout.t | 3 ++- t/db_dependent/Koha/Old/Checkouts.t | 3 ++- t/db_dependent/Koha/Old/Holds.t | 3 ++- t/db_dependent/Koha/Patron/Attribute.t | 3 ++- t/db_dependent/Koha/Patron/Attribute/Types.t | 3 ++- t/db_dependent/Koha/Patron/Categories.t | 3 ++- t/db_dependent/Koha/Patron/Category.t | 3 ++- t/db_dependent/Koha/Patron/Consents.t | 3 ++- t/db_dependent/Koha/Patron/Images.t | 3 ++- t/db_dependent/Koha/Patron/MessagePreference/Attributes.t | 3 ++- .../Koha/Patron/MessagePreference/Transport/Preferences.t | 3 ++- t/db_dependent/Koha/Patron/MessagePreference/Transport/Types.t | 3 ++- t/db_dependent/Koha/Patron/MessagePreference/Transports.t | 3 ++- t/db_dependent/Koha/Patron/MessagePreferences.t | 3 ++- t/db_dependent/Koha/Patron/Messages.t | 3 ++- t/db_dependent/Koha/Patron/Relationship.t | 3 ++- t/db_dependent/Koha/Patron/Restriction.t | 3 ++- t/db_dependent/Koha/Patron/Restriction/Type.t | 3 ++- t/db_dependent/Koha/Patron_generate_userid.t | 3 ++- t/db_dependent/Koha/Patrons.t | 3 ++- t/db_dependent/Koha/Plugins/Account_hooks.t | 3 ++- t/db_dependent/Koha/Plugins/Auth/Client.t | 3 ++- t/db_dependent/Koha/Plugins/BackgroundJob.t | 3 ++- t/db_dependent/Koha/Plugins/Barcode_transform_hooks.t | 3 ++- t/db_dependent/Koha/Plugins/Biblio_and_Items_plugin_hooks.t | 3 ++- t/db_dependent/Koha/Plugins/Broken.t | 3 ++- t/db_dependent/Koha/Plugins/Circulation_hooks.t | 3 ++- t/db_dependent/Koha/Plugins/Holds_hooks.t | 3 ++- t/db_dependent/Koha/Plugins/Ill_hooks.t | 3 ++- t/db_dependent/Koha/Plugins/KitchenSink.t | 3 ++- t/db_dependent/Koha/Plugins/Message_hooks.t | 3 ++- t/db_dependent/Koha/Plugins/Plugins.t | 3 ++- t/db_dependent/Koha/Plugins/TemplateIncludePathHook.t | 3 ++- t/db_dependent/Koha/Plugins/Transform_prepared_letter_hook.t | 3 ++- t/db_dependent/Koha/Plugins/authority_hooks.t | 3 ++- t/db_dependent/Koha/Policy/Holds.t | 3 ++- t/db_dependent/Koha/Policy/Patrons/Cardnumber.t | 3 ++- t/db_dependent/Koha/Preservation/Processings.t | 3 ++- t/db_dependent/Koha/Preservation/Trains.t | 3 ++- t/db_dependent/Koha/PseudonymizedTransaction.t | 3 ++- t/db_dependent/Koha/Quotes.t | 3 ++- t/db_dependent/Koha/REST/Plugin/Auth/IdP.t | 3 ++- t/db_dependent/Koha/REST/Plugin/Objects.t | 3 ++- t/db_dependent/Koha/REST/Plugin/Pagination.t | 3 ++- t/db_dependent/Koha/REST/Plugin/PluginRoutes.t | 3 ++- t/db_dependent/Koha/REST/V1.t | 3 ++- t/db_dependent/Koha/Ratings.t | 3 ++- t/db_dependent/Koha/Recall.t | 3 ++- t/db_dependent/Koha/Recalls.t | 3 ++- t/db_dependent/Koha/RecordSource.t | 3 ++- t/db_dependent/Koha/Reports.t | 3 ++- t/db_dependent/Koha/Reviews.t | 3 ++- t/db_dependent/Koha/SMS_Providers.t | 3 ++- t/db_dependent/Koha/SMTP/Server.t | 3 ++- t/db_dependent/Koha/SMTP/Servers.t | 3 ++- t/db_dependent/Koha/SearchEngine/Elasticsearch/Indexer.t | 3 ++- t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t | 3 ++- t/db_dependent/Koha/SearchEngine/Elasticsearch/Reset.t | 3 ++- t/db_dependent/Koha/SearchEngine/Indexer.t | 3 ++- t/db_dependent/Koha/SearchEngine/Search.t | 3 ++- t/db_dependent/Koha/SearchEngine/Zebra/QueryBuilder.t | 3 ++- t/db_dependent/Koha/SearchField.t | 3 ++- t/db_dependent/Koha/SearchFilters.t | 3 ++- t/db_dependent/Koha/Session.t | 3 ++- t/db_dependent/Koha/SharedContent.t | 3 ++- t/db_dependent/Koha/Statistic.t | 3 ++- t/db_dependent/Koha/Statistics.t | 3 ++- t/db_dependent/Koha/Subscription.t | 3 ++- t/db_dependent/Koha/Subscription/Numberpatterns.t | 3 ++- t/db_dependent/Koha/Subscription/Routinglists.t | 3 ++- t/db_dependent/Koha/Suggestion.t | 3 ++- t/db_dependent/Koha/Suggestions.t | 3 ++- t/db_dependent/Koha/Tags.t | 3 ++- t/db_dependent/Koha/Tags/Approvals.t | 3 ++- t/db_dependent/Koha/Tags/Indexes.t | 3 ++- t/db_dependent/Koha/Template/Plugin/Asset.t | 3 ++- t/db_dependent/Koha/Template/Plugin/Branches.t | 3 ++- t/db_dependent/Koha/Template/Plugin/CirculationRules.t | 3 ++- t/db_dependent/Koha/Template/Plugin/ClassSources.t | 3 ++- t/db_dependent/Koha/Template/Plugin/ExtendedAttributeTypes.t | 3 ++- t/db_dependent/Koha/Template/Plugin/ItemTypes.t | 3 ++- t/db_dependent/Koha/Template/Plugin/JSConsents.t | 3 ++- t/db_dependent/Koha/Template/Plugin/KohaPlugins.t | 3 ++- t/db_dependent/Koha/Template/Plugin/Notices.t | 3 ++- t/db_dependent/Koha/Template/Plugin/Registers.t | 3 ++- t/db_dependent/Koha/Template/Plugin/TablesSettings.t | 3 ++- t/db_dependent/Koha/Ticket.t | 3 ++- t/db_dependent/Koha/Ticket/Update.t | 3 ++- t/db_dependent/Koha/UI/Form/Builder/Biblio.t | 3 ++- t/db_dependent/Koha/UI/Form/Builder/Item.t | 3 ++- t/db_dependent/Koha/UI/Form/Builder/Item/itemtypes-default.t | 3 ++- t/db_dependent/Koha/Virtualshelf.t | 3 ++- t/db_dependent/Koha/Virtualshelves.t | 3 ++- t/db_dependent/Koha/XSLT/Base.t | 3 ++- t/db_dependent/Koha/XSLT/Security.t | 3 ++- t/db_dependent/Koha/Z3950Responder/GenericSession.t | 3 ++- t/db_dependent/Koha/Z3950Responder/Session.t | 3 ++- t/db_dependent/Koha/Z3950Responder/Session2.t | 3 ++- t/db_dependent/Koha/Z3950Responder/ZebraSession.t | 3 ++- t/db_dependent/Koha/Z3950Servers.t | 3 ++- t/db_dependent/Koha_Database.t | 3 ++- t/db_dependent/Koha_Elasticsearch.t | 3 ++- t/db_dependent/Koha_ExternalContent_OverDrive.t | 1 + t/db_dependent/Koha_MetadataRecord_Authority.t | 3 ++- t/db_dependent/Koha_Misc_Files.t | 3 ++- t/db_dependent/Labels/t_Batch.t | 3 ++- t/db_dependent/Labels/t_Label.t | 3 ++- t/db_dependent/Labels/t_Layout.t | 3 ++- t/db_dependent/Labels/t_Profile.t | 3 ++- t/db_dependent/Labels/t_Template.t | 3 ++- t/db_dependent/Languages.t | 3 ++- t/db_dependent/Letters/GetLetterTemplates.t | 3 ++- t/db_dependent/Letters/GetLettersAvailableForALibrary.t | 3 ++- t/db_dependent/Letters/TemplateToolkit.t | 3 ++- t/db_dependent/LibraryGroups.t | 3 ++- t/db_dependent/Linker_Default.t | 3 ++- t/db_dependent/Linker_FirstMatch.t | 3 ++- t/db_dependent/Log.t | 3 ++- t/db_dependent/MarcModificationTemplates.t | 3 ++- t/db_dependent/Matcher.t | 3 ++- t/db_dependent/Members.t | 3 ++- t/db_dependent/Members/IssueSlip.t | 3 ++- t/db_dependent/Members/Statistics.t | 3 ++- t/db_dependent/Message.t | 3 ++- t/db_dependent/MungeMarcPrice.t | 1 + t/db_dependent/OAI/AndSets.t | 3 ++- t/db_dependent/OAI/Server.t | 3 ++- t/db_dependent/OAI/Sets.t | 3 ++- t/db_dependent/Passwordrecovery.t | 3 ++- t/db_dependent/Patron/Borrower_Debarments.t | 3 ++- t/db_dependent/Patron/Borrower_Files.t | 3 ++- t/db_dependent/Patron/Borrower_PrevCheckout.t | 3 ++- t/db_dependent/Patron/Housebound.t | 3 ++- t/db_dependent/Patron/HouseboundProfiles.t | 3 ++- t/db_dependent/Patron/HouseboundRoles.t | 3 ++- t/db_dependent/Patron/HouseboundVisits.t | 3 ++- t/db_dependent/Patron/Messages.t | 3 ++- t/db_dependent/Patron/Messaging.t | 3 ++- t/db_dependent/Patron/Relationships.t | 3 ++- t/db_dependent/PatronLists.t | 3 ++- t/db_dependent/Patroncards.t | 3 ++- t/db_dependent/Patrons.t | 3 ++- t/db_dependent/Prices.t | 3 ++- t/db_dependent/Record.t | 3 ++- t/db_dependent/Record/Record.t | 3 ++- t/db_dependent/Record/marcrecord2csv.t | 3 ++- t/db_dependent/RecordProcessor_EmbedSeeFromHeadings.t | 1 + t/db_dependent/Reports.t | 3 ++- t/db_dependent/Reports/Guided.t | 3 ++- t/db_dependent/Reserves/AutoUnsuspendReserves.t | 3 ++- t/db_dependent/Reserves/GetReserveFee.t | 3 ++- t/db_dependent/Reserves/MultiplePerRecord.t | 3 ++- t/db_dependent/Reserves/ReserveSlip.t | 3 ++- t/db_dependent/RotatingCollections.t | 3 ++- t/db_dependent/SIP/ILS.t | 3 ++- t/db_dependent/SIP/Message.t | 3 ++- t/db_dependent/SIP/Patron.t | 3 ++- t/db_dependent/SIP/SIPServer.t | 3 ++- t/db_dependent/SIP/Transaction.t | 3 ++- t/db_dependent/Search.t | 3 ++- t/db_dependent/Search/History.t | 3 ++- t/db_dependent/Serials.t | 3 ++- t/db_dependent/Serials/Claims.t | 3 ++- t/db_dependent/Serials/Frequency.t | 3 ++- t/db_dependent/Serials/GetFictiveIssueNumber.t | 3 ++- t/db_dependent/Serials/GetNextDate.t | 3 ++- t/db_dependent/Serials/GetNextSeq.t | 3 ++- t/db_dependent/Serials/Numberpattern.t | 3 ++- t/db_dependent/Serials/ReNewSubscription.t | 3 ++- t/db_dependent/Serials/updateClaim.t | 3 ++- t/db_dependent/Serials_2.t | 3 ++- t/db_dependent/Service.t | 3 ++- t/db_dependent/ShelfBrowser.t | 3 ++- t/db_dependent/Sitemapper.t | 3 ++- t/db_dependent/SocialData.t | 3 ++- t/db_dependent/StockRotationItems.t | 3 ++- t/db_dependent/StockRotationRotas.t | 3 ++- t/db_dependent/StockRotationStages.t | 3 ++- t/db_dependent/SuggestionEngine_ExplodedTerms.t | 3 ++- t/db_dependent/Suggestions.t | 3 ++- t/db_dependent/TablesSettings.t | 3 ++- t/db_dependent/Tags.t | 3 ++- t/db_dependent/Template/Plugin/AdditionalContents.t | 3 ++- t/db_dependent/Template/Plugin/AuthorisedValues.t | 3 ++- t/db_dependent/Template/Plugin/Branches.t | 3 ++- t/db_dependent/Template/Plugin/Categories.t | 3 ++- t/db_dependent/Template/Plugin/CirculationRules.t | 3 ++- t/db_dependent/Template/Plugin/Frameworks.t | 3 ++- t/db_dependent/Template/Plugin/KohaDates.t | 3 ++- t/db_dependent/Template/Plugin/KohaTimes.t | 3 ++- t/db_dependent/Template/Plugin/NoticeTemplates.t | 3 ++- t/db_dependent/Template/Plugin/To.t | 3 ++- t/db_dependent/Templates.t | 3 ++- t/db_dependent/TestBuilder.t | 3 ++- t/db_dependent/Upload.t | 3 ++- t/db_dependent/UsageStats.t | 3 ++- t/db_dependent/Utils/Datatables_Virtualshelves.t | 3 ++- t/db_dependent/Virtualshelves.t | 3 ++- t/db_dependent/XSLT.t | 3 ++- t/db_dependent/api/v1/acquisitions_baskets.t | 3 ++- t/db_dependent/api/v1/acquisitions_funds.t | 3 ++- t/db_dependent/api/v1/acquisitions_orders.t | 3 ++- t/db_dependent/api/v1/acquisitions_vendor_issues.t | 3 ++- t/db_dependent/api/v1/acquisitions_vendors.t | 3 ++- t/db_dependent/api/v1/advanced_editor_macros.t | 3 ++- t/db_dependent/api/v1/article_requests.t | 3 ++- t/db_dependent/api/v1/auth.t | 3 ++- t/db_dependent/api/v1/auth_authenticate_api_request.t | 3 ++- t/db_dependent/api/v1/auth_basic.t | 3 ++- t/db_dependent/api/v1/authorised_values.t | 3 ++- t/db_dependent/api/v1/authorities.t | 3 ++- t/db_dependent/api/v1/bookings.t | 3 ++- t/db_dependent/api/v1/cashups.t | 3 ++- t/db_dependent/api/v1/checkouts.t | 3 ++- t/db_dependent/api/v1/circulation_rules.t | 3 ++- t/db_dependent/api/v1/cities.t | 3 ++- t/db_dependent/api/v1/clubs_holds.t | 3 ++- t/db_dependent/api/v1/deleted_biblios.t | 3 ++- t/db_dependent/api/v1/edifact_files.t | 3 ++- t/db_dependent/api/v1/erm_agreements.t | 3 ++- t/db_dependent/api/v1/erm_counter_files.t | 3 ++- t/db_dependent/api/v1/erm_counter_logs.t | 3 ++- t/db_dependent/api/v1/erm_counter_registries.t | 3 ++- t/db_dependent/api/v1/erm_custom_reports.t | 3 ++- t/db_dependent/api/v1/erm_documents.t | 3 ++- t/db_dependent/api/v1/erm_eholdings_packages.t | 3 ++- t/db_dependent/api/v1/erm_eholdings_resources.t | 3 ++- t/db_dependent/api/v1/erm_eholdings_titles.t | 3 ++- t/db_dependent/api/v1/erm_licenses.t | 3 ++- t/db_dependent/api/v1/erm_sushi_services.t | 3 ++- t/db_dependent/api/v1/erm_usage_data_providers.t | 3 ++- t/db_dependent/api/v1/erm_usage_titles.t | 3 ++- t/db_dependent/api/v1/erm_users.t | 3 ++- t/db_dependent/api/v1/extended_attribute_types.t | 3 ++- t/db_dependent/api/v1/idp.t | 3 ++- t/db_dependent/api/v1/ill_backends.t | 3 ++- t/db_dependent/api/v1/ill_batches.t | 3 ++- t/db_dependent/api/v1/ill_batchstatuses.t | 3 ++- t/db_dependent/api/v1/ill_requests.t | 3 ++- t/db_dependent/api/v1/import_batch_profiles.t | 3 ++- t/db_dependent/api/v1/import_record_matches.t | 3 ++- t/db_dependent/api/v1/item_groups.t | 3 ++- t/db_dependent/api/v1/item_types.t | 3 ++- t/db_dependent/api/v1/items.t | 3 ++- t/db_dependent/api/v1/items/bundled_items.t | 3 ++- t/db_dependent/api/v1/jobs.t | 3 ++- t/db_dependent/api/v1/libraries.t | 3 ++- t/db_dependent/api/v1/oauth.t | 1 + t/db_dependent/api/v1/pagination.t | 3 ++- t/db_dependent/api/v1/password_validation.t | 3 ++- t/db_dependent/api/v1/patron_categories.t | 3 ++- t/db_dependent/api/v1/patrons.t | 3 ++- t/db_dependent/api/v1/patrons_accounts.t | 3 ++- t/db_dependent/api/v1/patrons_checkouts.t | 3 ++- t/db_dependent/api/v1/patrons_extended_attributes.t | 3 ++- t/db_dependent/api/v1/patrons_holds.t | 3 ++- t/db_dependent/api/v1/patrons_password.t | 3 ++- t/db_dependent/api/v1/patrons_password_expiration.t | 3 ++- t/db_dependent/api/v1/patrons_recalls.t | 3 ++- t/db_dependent/api/v1/preservation_Processings.t | 3 ++- t/db_dependent/api/v1/preservation_Trains.t | 3 ++- t/db_dependent/api/v1/preservation_WaitingList.t | 3 ++- t/db_dependent/api/v1/provider.t | 3 ++- t/db_dependent/api/v1/public/lists.t | 3 ++- t/db_dependent/api/v1/query.t | 3 ++- t/db_dependent/api/v1/record_sources.t | 3 ++- t/db_dependent/api/v1/responses.t | 3 ++- t/db_dependent/api/v1/return_claims.t | 3 ++- t/db_dependent/api/v1/search_filters.t | 3 ++- t/db_dependent/api/v1/smtp_servers.t | 3 ++- t/db_dependent/api/v1/stockrotation_rotas.t | 3 ++- t/db_dependent/api/v1/stockrotationstage.t | 3 ++- t/db_dependent/api/v1/suggestions.t | 3 ++- t/db_dependent/api/v1/ticket_updates.t | 3 ++- t/db_dependent/api/v1/tickets.t | 3 ++- t/db_dependent/api/v1/transfer_limits.t | 3 ++- t/db_dependent/api/v1/unhandled_exceptions.t | 3 ++- t/db_dependent/check_kohastructure.t | 3 ++- t/db_dependent/check_sysprefs.t | 3 ++- t/db_dependent/db_structure.t | 1 + t/db_dependent/misc/translator/xgettext-installer.t | 3 ++- t/db_dependent/misc/translator/xgettext-pref.t | 3 ++- t/db_dependent/misc/translator/xgettext-tt2.t | 3 ++- t/db_dependent/mojo/csrf.t | 3 ++- t/db_dependent/rollingloans.t | 3 ++- t/db_dependent/selenium/01-installation.t | 3 ++- t/db_dependent/selenium/administration_tasks.t | 3 ++- t/db_dependent/selenium/authentication.t | 3 ++- t/db_dependent/selenium/authentication_2fa.t | 3 ++- t/db_dependent/selenium/batch_item_modification.t | 3 ++- t/db_dependent/selenium/ilsdi.t | 3 ++- t/db_dependent/selenium/opac_holds.t | 3 ++- t/db_dependent/selenium/patrons_search.t | 1 + t/db_dependent/selenium/remove_from_cart.t | 1 + t/db_dependent/selenium/self_registration.t | 1 + t/db_dependent/selenium/system_preferences_search.t | 1 + t/db_dependent/selenium/update_child_to_adult.t | 1 + t/db_dependent/sysprefs.t | 3 ++- t/db_dependent/www/regressions.t | 3 ++- t/db_dependent/www/rest_api.t | 1 + t/db_dependent/yaml.t | 1 + t/template_filters.t | 3 ++- t/timezones.t | 3 ++- 663 files changed, 1295 insertions(+), 632 deletions(-) diff --git a/t/00-check-atomic-updates.t b/t/00-check-atomic-updates.t index 75bab4576f1..8ac7818ccf0 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 6eba09deba3..a25495ea03f 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 d518f34fd19..34c36800170 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 86f7fa5f8cc..4c8e9a93513 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 66458df7073..43192e3b2e3 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 4cc8d9dd89d..f66fe4ba7ee 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 462189ecde4..ae4e3418c9f 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 d5b2f1e7faa..98bb09e196f 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 4ed2e1dfb3c..89457d6d277 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 84febb8bbfb..36500f01df6 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 c3c9046a4c6..f53b30e97c9 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 b89d207e42e..2e904fe187b 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 a2377d3add8..d0ea010d54c 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 1bde5d36388..af501bb01a7 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 3fbf90402a1..bcc86c4cb31 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 0f10c282559..5a2466a116e 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 858bac89bf6..107170dc8ef 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 96d0af48855..98521e8652c 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 b2c8454d716..f66e1bc1afd 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 5c528b4f88d..73303b90345 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 3e92883e0b4..81665399462 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 218b710cc15..7aba00af7b4 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 d5f31c95338..41d60914b62 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 be379a29e6a..578bf8180ab 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 f4dc8e72e13..b30fa2438ee 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 09c3dd72920..493ab7d6d5c 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 bfabee440df..db74d16974e 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 ffb3104fcc9..17d75937d37 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 9903719e8da..d5b14dc3498 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 87df569a43a..85673d58008 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 3df60d24a5b..576ccca55b9 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 b1206af16a4..6a605dad8cc 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 b26be34c537..c0f6a93cc1b 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 3800b751267..d8eee6cad6c 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 1b89f8a9c5e..1142d263d48 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 6d410dc8b84..d49ce9d5d04 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 e4809359c60..4d7733b65e4 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 e335c7458ea..5a36645d3e5 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 483e1331e36..a27171a2542 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 3746d2c8c24..03afb1b5553 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 0a81da024dd..ffd84f6be18 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 d937c26fcb7..22b666bc4ee 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 4b398646f3b..3ad19647aa0 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 1d51e3027d9..bff00632b35 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 d394f65709b..00e1d79c868 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 ff9191c678a..84b7abd552e 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 442ef9c4306..e3df3a569e0 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 9e3003c3983..1668aef6206 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 69fed9c875c..61e6326dbbf 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 9a6ce3ab37f..de2a4b2d476 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 6524e66e805..1b5742fabd8 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 46dc91c6d40..1b94f179126 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 ea189511981..fe77716629c 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 2ec8e51b896..bd027b8c62a 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 6872c2c3a57..049b6b22d8c 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 5a513753b27..9f7c391c7bc 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 ae0cf40d055..054122ed7a0 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 7502967499a..871dbf2d2a7 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 ac5a803a9b0..1f3e09ea077 100755 --- a/t/Koha/REST/Plugin/Query.t +++ b/t/Koha/REST/Plugin/Query.t @@ -373,7 +373,8 @@ sub to_model { # The tests -use Test::More tests => 10; +use Test::NoWarnings; +use Test::More tests => 11; use Test::Mojo; subtest 'extract_reserved_params() tests' => sub { diff --git a/t/Koha/Result/Boolean.t b/t/Koha/Result/Boolean.t index 8a1a9c94290..42c2f3b87ea 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 527ff24ddd0..97e5efc9505 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 a84963f1246..1e03a487ff4 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 b6b670d7d59..913e092c48e 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 1ca6bd359e5..ca707f34edc 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 cf34a6f55ad..e4038ac91bf 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 6dca03263d0..2389b0c0864 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 95e9c213973..322f2b9cb56 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 9ff50ea238f..d0ac266bce2 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 317ad8cbf8d..bcfd334ab8a 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 898c38be9f9..e9b00a074af 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 7f2219783b3..bb4e64e12b3 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 cb24fb8659a..6641321e7b3 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 986c4ba6587..964ace8c506 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 7e767a2cc93..2d287a17359 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 a8d66feb9d4..66a893a5929 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 a30e3e79d54..f8b0df572d4 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 e33867003cd..ca3ca5d663c 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 a5d1da4aaa1..40f5efcdc07 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 b69e03b725a..35c38a5fb0b 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 c6db3c66810..5476d896b83 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 eaf92e8e9ce..62c335e5409 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 baca48c134c..6b72c0849a7 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 14c5d2866d8..50ad917538c 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 => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use CGI qw ( -utf8 ); use Koha::Cache::Memory::Lite; diff --git a/t/Logger.t b/t/Logger.t index 4281c3b6ff9..815f72a1c58 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 a0cdeab5cca..20e0b8190aa 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 93950084c11..e78e9986dbd 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 d881750c174..745984f6898 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 b0865e618b3..b152f83c012 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 55ca2dc4367..19c862af1fd 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 bf7b1842c19..7528cf8f28c 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 60a7237fd87..4a3642a10ba 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 a0743ff8d9c..f94dd684c70 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 88154a6425b..37087690870 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 8868350fb1c..eb082d30fc9 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 78cb6cfa7cd..b886dd52441 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 a781e0c3cc7..9b369446a1c 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 eef01d42cdd..2403e26a212 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 c11b1f59b5a..b2c073cdf1e 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 1dc7ed1684b..36c3d053b3e 100755 --- a/t/SIP/Sip.t +++ b/t/SIP/Sip.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 9; +use Test::NoWarnings; +use Test::More tests => 10; use Test::Warn; BEGIN { diff --git a/t/SMS.t b/t/SMS.t index 763251a7137..e55c5f1ef75 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 520b6b326f5..8bf1bb7f947 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 e04fd2e0d94..ca02465359e 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 e32fc85595e..96d2289f595 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 0b3715c13cb..03affbef6d8 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 d03b2cf8b0a..9b0bfb38e4b 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 62b622d97af..753b095a0cd 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 63a7f3c73ec..070086fe5fd 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 480b84f4c11..b101ba5fb74 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 597ec8c4126..f66d75ff4fb 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 c8c981fa60a..511f9df36f4 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 7790722f3f9..ef98d48b36b 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 0f1a9ed3075..ed6c4351ec3 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 4857e278c58..cf4022e13a5 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 a52f3c5e6f7..803476a047a 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 794bb3d69ad..91b8adba871 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 41515a94512..34aa248e65e 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 f749706a6c1..ecd0e90d843 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 931fc9a991b..3ad2c7abbc6 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 6e25ed8edb4..52a713d1faf 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 96969e0c7f8..b76bf61d3b5 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 37b01e79e6a..53f1f1ce82b 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 ce9a90a26b3..e89274bf87f 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 b978cd76cec..738b5146434 100755 --- a/t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t +++ b/t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 43; +use Test::NoWarnings; +use Test::More tests => 44; use Data::Dumper; use C4::Acquisition qw( NewBasket GetBasket GetBasketsInfosByBookseller ReopenBasket AddInvoice GetInvoice ModReceiveOrder ); diff --git a/t/db_dependent/Acquisition/GetOrdersByBiblionumber.t b/t/db_dependent/Acquisition/GetOrdersByBiblionumber.t index b16c307d274..c81660d3375 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 337bd94883d..c9d5465beed 100755 --- a/t/db_dependent/Acquisition/Invoices.t +++ b/t/db_dependent/Acquisition/Invoices.t @@ -8,7 +8,8 @@ use Koha::Acquisition::Booksellers; use Koha::Acquisition::Orders; use Koha::Database; -use Test::More tests => 29; +use Test::NoWarnings; +use Test::More tests => 30; BEGIN { use_ok('C4::Acquisition', qw( NewBasket GetBasket AddInvoice GetInvoice ModReceiveOrder GetInvoiceDetails GetInvoices ModInvoice CloseInvoice ReopenInvoice MergeInvoices DelInvoice )); diff --git a/t/db_dependent/Acquisition/NewOrder.t b/t/db_dependent/Acquisition/NewOrder.t index d853cb1f91a..59b5c75e7de 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 d9db71c1803..c5bd8341209 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 540be8460d8..97952b308e8 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 ecf7cd1e5ce..4854449fc1e 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 1cf443dd6d2..73711e9dd86 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 47aa681fac1..e870f74d42d 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 3bf9fa32f4a..8cfb02be48f 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 871808415d4..69bb1693f3e 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 289015b4314..83e08b5118b 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 5b616e50087..1d5a239df53 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 6cbb044561f..be696b37f8b 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 fa5bc760388..afb630ec98e 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 be33224325b..4405ec9205d 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 6c35aa5e5fa..8f58def1d14 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 55435d281b8..81b8a4eeb5d 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 d8ccde0d3fc..390c555f92e 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 f5d98e35422..6175b5e5305 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 2336cf999cf..a0c84931013 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 bba791992a0..273c5ff5e8a 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 dc5e53a1c37..4b67f123dcb 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 4111f7ab8ae..2c37e45e9b9 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 0232a4a9c9a..95dc6904e46 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 84fcce19834..da6066a8660 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 dc992b284a9..91ae5a310e9 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 c97815494dc..f488bbab457 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 a1fb6cf5968..b16ef706eb5 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 0d54748031a..86803683e22 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 d2efaa6aa91..ff76e2329fc 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 ab16f52d303..2961d15a881 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 4c687a69baa..189c01a2540 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 c88763076bd..4a8b2c31f45 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 b019bb127d8..78ea2536158 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 be221dcb00c..f50b7215012 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 e47393f22c5..9764a3eb7cf 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 40b99bc7958..368cd9e8713 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 420b38641e3..8853dc1a50c 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 ce382776102..9c4a3cca73d 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 80a8cc61427..c849a8d7454 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 f4c232b9dd3..c6c7d74474e 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 d372d173392..f437815b1e4 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 9add3041395..622bbfd929b 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 0e159b60acb..8b200f30cb1 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 227bde390ce..888857e9986 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 01d60d9790a..77047914a40 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 3130faeff06..d5c1d5a3fb5 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 5cfae54e705..3b11b7e56d6 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 7f76a40a616..131ac5fe76d 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 f3d51fc91fd..bd54fd7df04 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 9aec60fb19e..4cfc08eff1d 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 867ce700a1a..77dd5e03c77 100755 --- a/t/db_dependent/Circulation/OfflineOperation.t +++ b/t/db_dependent/Circulation/OfflineOperation.t @@ -7,7 +7,8 @@ use Koha::Database; use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Library; -use Test::More tests => 7; +use Test::NoWarnings; +use Test::More tests => 8; BEGIN { use_ok('C4::Circulation', qw( AddOfflineOperation GetOfflineOperation GetOfflineOperations DeleteOfflineOperation )); diff --git a/t/db_dependent/Circulation/ReturnClaims.t b/t/db_dependent/Circulation/ReturnClaims.t index e1b4409f6ea..ad34bbbd7c5 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 e11fe4d0010..2c3ffe31175 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 c4c7f37a225..d0d057b39a8 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 e0aafb38689..003a41fe084 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 b760cb4136a..201aea0d016 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 701e3bfb56c..6b74a923a2a 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 f992219687c..3d8fd99524e 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 8b91a27a880..465510c8aaf 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 614a32303a2..f2d164661ef 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 78ca0b34c88..81bdb3e090a 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 ca6c37daa47..335c6521206 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 98d8f2b988d..d05a586f648 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 853c988f8a6..bc1b84d5275 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 67587b4798e..360f8582ac0 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 e1af15b19cc..234b598450e 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 06af1b5a503..9c4e85401c2 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 6e419cdb256..81249eb2dc8 100755 --- a/t/db_dependent/CourseReserves/CourseItems.t +++ b/t/db_dependent/CourseReserves/CourseItems.t @@ -23,7 +23,8 @@ use C4::CourseReserves qw( ModCourse ModCourseItem ModCourseReserve GetCourse Ge use C4::Context; use Koha::Items; -use Test::More tests => 36; +use Test::NoWarnings; +use Test::More tests => 37; BEGIN { require_ok('C4::CourseReserves'); diff --git a/t/db_dependent/Creators/Lib.t b/t/db_dependent/Creators/Lib.t index 5b314bcd689..0106fb59c93 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 2d42d28b9b1..04729282502 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 68fa733f7dc..596560064b2 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 1b03f807ac1..cf6d427898e 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 b604a3374ad..d8df49b98f6 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 731f97df6dd..e734b684e03 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 80ce96b842c..31359cb872a 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 9f94cf2234e..8b010071967 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 15c61a31fae..2a5cb5bc515 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 26486b156a4..5617e38b93c 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 31d595a421d..ba870a770ce 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 5fadfb0cfe5..5947d055ccb 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 2b5bdc141a8..bd6c03befee 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 7638130e20d..a7100c51a2c 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 069c7537c16..9d3eb4bda67 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 b39ee11ce18..a504a427849 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 11bcad4156c..d0335b52c91 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 db169e8e2a2..765881188cf 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 df7e65a374a..aaf0c8fddd0 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 c9ef54391ac..5cfd6e322e1 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 db88a7c72e7..e8d3816ebf6 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 2e9c0e26c88..d26328fb045 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 1954162a0af..87fd5403133 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 74532194b08..697461cd9be 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 7430102b26c..3ede834b08f 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 b5c2b97bd26..77766fb7ee4 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 f802b5d972e..c3d3b6e0126 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 39a84a7eb2e..8c009aff5fd 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 34e8ceec89d..2256d535ec3 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 0c4812d2bdb..70d2df4ad90 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 20c9e64afa9..5702e8151df 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 039fb809f07..4c2a70fc3f0 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 54365f92b0f..72f1e140149 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 c3dc1285136..d45fabdc8da 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 45a9071def7..8a56da25177 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 e5aedefdada..408f3cb2154 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 0412160c42c..6a30b7ef526 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 fc21d0b38f8..f3867e5d0bd 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 fc87ef7727d..79458e24bda 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 e99f01f1c3b..aa6cf7ec61b 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 3419672b797..fbf8715cc17 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 d74afa1ff56..2be93b20362 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 a8bca21a8f8..4b62dff84be 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 ede7e0cc5ec..654acd0bc19 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 b369dc7ce2d..8d4f6042074 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 d9f46fce880..8e65b55b46e 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 2d6819e763e..c8c94cbdcff 100755 --- a/t/db_dependent/Koha/ArticleRequest.t +++ b/t/db_dependent/Koha/ArticleRequest.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::MockModule; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/ArticleRequests.t b/t/db_dependent/Koha/ArticleRequests.t index 1b240b65240..b73b1442be0 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 afea2aed078..9a1014ab270 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 6d0e1ffd74f..f8c9d60b746 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 da9e4cae0b9..9149e4d425b 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 87302cf815e..587c3f74f33 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 30e26bfb702..e070e439f23 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 1a45510bd53..f45be30b4c4 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 9e9c2233125..6f158a32a25 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 9a21b3b2ed2..0e66b37c90a 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 f4f3f204405..40a7da17cda 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 83b38b05d7d..0f0c2bc67b0 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 aa829aa7085..712ef4ab6f8 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 9621f5a4887..0212293cb80 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 e0abbb283a3..f07821630ce 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 04651adc582..ff9c0a3ce1f 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 e77d2d4caeb..5991d504983 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 d7adccec0c4..a132484b534 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 1a8e0b495f1..17387882563 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 ccff377c044..98f3717e7c2 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 c8089d4488b..45469adf92d 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 fa1a332fb44..ef9904c77e2 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 ee40088c8c2..f18ab6ce034 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 aa9b0e49d56..cc18769c6fe 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 f819e5d9957..e7f66b4e21e 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 7818807830c..d230b8703f1 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 aa753903c09..3715c5e6e30 100755 --- a/t/db_dependent/Koha/Biblio.t +++ b/t/db_dependent/Koha/Biblio.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 39; +use Test::NoWarnings; +use Test::More tests => 40; use Test::Exception; use Test::Warn; diff --git a/t/db_dependent/Koha/Biblio/ItemGroups.t b/t/db_dependent/Koha/Biblio/ItemGroups.t index f0d8accf140..8e4cfaccd57 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 67a09b40cec..6b5d550e444 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 02907e08c5c..31c30076d2a 100755 --- a/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC.t +++ b/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Exception; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC/MARC21.t b/t/db_dependent/Koha/Biblio/Metadata/Extractor/MARC/MARC21.t index 80211f1271e..de5c62d7f9b 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 99e1eb4538f..929fe5dd93d 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 c5c5827ad11..d41fd397fdf 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 d2e31d91496..4e736e93ef1 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 fde249ffe51..b0bd5bad87c 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 40b3ce1bcbd..5b3e99d4241 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 479d22326fa..5e21ab4aba9 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 233c1a7590d..bea719650f9 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 df373c3d87a..275d77855ad 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 7f009a528db..af097a2117e 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 2f2af9d8769..ccb3bf315d6 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 1a7aa9f43bb..89ba61b0a87 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 cb27ff90c4c..8e5b35d6897 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 deb166fdbad..a382132b4d5 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 9e1a42a3dc8..56b5e1c46ce 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 5d5ebda4005..0635152c0b3 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 90eb827aff0..98f5032bdcf 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 => 7; +use Test::NoWarnings; +use Test::More tests => 8; 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 f5c0f8aa9b0..34936d5a90f 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 acf44b3a04b..48fa9d7291b 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 e83d93ba593..39682eef57b 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 c1772b16549..970830c13e6 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 2224dcc17ec..d6c70bcf5a8 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 528be791515..442e01d6e05 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 d705f1d807b..bfe8b805412 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 0f540edd306..9a4345e0a10 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 af23e03d549..6d30a7b005b 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 31c17b75b7b..ee9faaad21a 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 d823f404044..95224ddd1c1 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 3b98bef4722..e4faf629ed6 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 3543992e71d..76133abe0fa 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 25bbeda0107..38d609c8c00 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 89814456ff2..9cf7bd83543 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 6cbf8cac4d2..8826b093309 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 7d36fe82e6f..f4ab82f16bd 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 86fef487bc2..5226e93f99c 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 e47568f606a..641dd5f4f10 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 941bfe351d3..ba30028c260 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 0792994d129..21ef32499a3 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 3630a8172dc..8b3009d0a27 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 83f05afa68b..3e4efbb45ac 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 524bfb5f340..a94d6c3e577 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 ef1249eec64..4726b1d1fcf 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 ac33dc9a146..efb9e1ccc2a 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 e8d1dc51552..4e722eb1d2a 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 e1d90102dc7..0d367e64a54 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 b552eee2970..c374fd28c06 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 eaa6df4232f..4f202f51dc1 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 80052ee40ae..2addcc1c304 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 8580f75dae7..2988ae218a9 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 2c57ba8646b..359a7be0f63 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 996a144c088..bc0b2fb9647 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 afcab4d4262..d3262c16765 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 2d4b60f2609..3dc8d0537ae 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 8fc5e7fb8fc..be10dbf9a67 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 00dcfe3fc36..f89f196923a 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 d4110f30bde..a7848b94074 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 d80dca387a6..2688b57562d 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 b910f2c9daf..36f301975c3 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 c4a536f01ad..46b2a04efc5 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 d992a417354..186519332bc 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 cfd0f71b9d7..29847b2f5df 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 de5b6dd9167..2353b3336c9 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 36c12a6a7bb..480ad267d00 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 c6df4262075..9b70876d872 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 7d115cdb3ab..5213f3a2dd8 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 3f7d8abf2dd..5b10f05f198 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 9e73880478a..425dc76a985 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 8174c2dd44f..e39345f1ef7 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 dca1e66511a..398a57580c4 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 2ac3462351e..a2d2324e554 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 35cce33bcb8..1070aebba09 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 d62cf05e489..6f5d8ea8919 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 03b26550eb4..6508fb5648d 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 af6e5b6c43a..79cd3d32c44 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 fc98a1b933a..885266bb2d0 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 5c746d679d5..b88f1317ecf 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 661803d815b..376be865d06 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 02802a3b6a1..ed4410ee1c6 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 7a755d9851f..9e5652e6902 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 d5ebe527882..1bd204d01f7 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 32c11e5c62f..fda83208c17 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 805d6313ad9..276ba05a7ff 100755 --- a/t/db_dependent/Koha/Notice_Util.t +++ b/t/db_dependent/Koha/Notice_Util.t @@ -19,7 +19,8 @@ use Modern::Perl; #use Data::Dumper qw/Dumper/; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/Koha/Notices.t b/t/db_dependent/Koha/Notices.t index 9a58e9e758f..4059a4b0930 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 7aa0886bca9..ab835c95369 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 22d9cab649f..8c189e76d2a 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 606182d2410..66cdc28112b 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 2b801e19c1c..b839b24e4f6 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 e98ddf8f3ad..55d51eeaf46 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 301a40ff418..608de14bdfd 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 29a09e79917..bd2f260521d 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 a6c26c261f4..281ea663663 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 42bdbe4d65f..0297cc80ead 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 7cf520e96f5..adfbdf10df3 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 250b258a6e1..87f42b339a0 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 cd791ad3506..043e80b0b3a 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 e9e9f9c7fb7..5f2ee9b07df 100755 --- a/t/db_dependent/Koha/Patron/Attribute.t +++ b/t/db_dependent/Koha/Patron/Attribute.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use t::lib::TestBuilder; use Test::Exception; diff --git a/t/db_dependent/Koha/Patron/Attribute/Types.t b/t/db_dependent/Koha/Patron/Attribute/Types.t index c7bb0d2fbc0..76cc31d8f63 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 4bee746332a..a46d320c559 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 0d7f42fa381..ad14893669b 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 5120022797a..c95517c5ed7 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 86f705d5678..c4b45e9fb79 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 2c882578fc2..9353c6b8a26 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 f240a6bdd68..18d586caa58 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 8231fe28e36..67248841f32 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 000835ecb2d..fe42ef23992 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 9e60cbff2e0..59566a53e63 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 31f8cf92b44..8c887bff2db 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 495afad1262..8fd9768aafd 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 4c95dcf70cc..5f6e6cc5df0 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 1caae5d8735..0e8f86abf39 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 d44753d8834..a8fd7696a78 100755 --- a/t/db_dependent/Koha/Patron_generate_userid.t +++ b/t/db_dependent/Koha/Patron_generate_userid.t @@ -20,7 +20,8 @@ use Modern::Perl; use utf8; #use Data::Dumper; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Warn; use Test::MockModule; use Test::MockObject; diff --git a/t/db_dependent/Koha/Patrons.t b/t/db_dependent/Koha/Patrons.t index 994d3fe4097..952af86f8ca 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 4eade79abc0..6fde6226223 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 e83e717a3f7..a50233e7596 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 c5ccd3763f7..d0e53a87595 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 234f7d572f3..31b57c762fd 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 4464fb407a5..6add31dec77 100755 --- a/t/db_dependent/Koha/Plugins/Biblio_and_Items_plugin_hooks.t +++ b/t/db_dependent/Koha/Plugins/Biblio_and_Items_plugin_hooks.t @@ -16,7 +16,8 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Warn; use File::Basename; diff --git a/t/db_dependent/Koha/Plugins/Broken.t b/t/db_dependent/Koha/Plugins/Broken.t index 6db153db7ed..8db18610001 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 47ac5d58afa..69c6302ad51 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 dd4d84755a9..11e8afbaea1 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 a2be67380ab..ca8af8a9e80 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 7393d00ef23..af2ba6ecf9e 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 6abb2781b07..1e2967c3a84 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 90e505c0d3c..bff085d3a10 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 9ac1540967f..2dfa24624d6 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 060fd5cfc73..f951467bc0d 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 be0b12c4915..42ee4cd9649 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 fc54c886f6f..c5a131ab7c5 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 10c55832f8d..516a0b9a653 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 2c60173f0de..84ebd50fc76 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 7b6f71a5a1a..9a2e3a76fd2 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 7a92a14a77b..11e247f6d02 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 0ecd7d85f7d..40990c1701d 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 48325367ade..0420928ec9b 100755 --- a/t/db_dependent/Koha/REST/Plugin/Auth/IdP.t +++ b/t/db_dependent/Koha/REST/Plugin/Auth/IdP.t @@ -67,7 +67,8 @@ post '/start_session' => sub { } }; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/REST/Plugin/Objects.t b/t/db_dependent/Koha/REST/Plugin/Objects.t index 25a2bce9afe..564e5a8b9e0 100755 --- a/t/db_dependent/Koha/REST/Plugin/Objects.t +++ b/t/db_dependent/Koha/REST/Plugin/Objects.t @@ -140,7 +140,8 @@ get '/cities/:city_id/rs' => sub { }; # The tests -use Test::More tests => 18; +use Test::NoWarnings; +use Test::More tests => 19; use Test::Mojo; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/REST/Plugin/Pagination.t b/t/db_dependent/Koha/REST/Plugin/Pagination.t index 5e8a4a34495..9f95dfa6ba4 100755 --- a/t/db_dependent/Koha/REST/Plugin/Pagination.t +++ b/t/db_dependent/Koha/REST/Plugin/Pagination.t @@ -86,7 +86,8 @@ get '/dbic_merge_pagination' => sub { # The tests -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; use t::lib::Mocks; diff --git a/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t b/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t index df9553065b2..232cf28ac1b 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 fc333a0814b..78533fda471 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 664a48133f9..8620bb52922 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 4d6eff783e8..0d13137fb8e 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 dffc85f77fa..a519aba53a9 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 5a0bba3212f..3a15736acf3 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 19bee5bd274..28a9eb97928 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 0c8dcdc9c4a..7f015ab351f 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 a469d776490..0396b6dd5c9 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 bb84b8da6a6..34b96cad595 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 b3506b76b11..4d80ea14662 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 ee467654d2e..a7740361bab 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 ca0e3666b6c..8f1f0c72cd3 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 64a38740818..bc37bf75021 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 0240935179d..cf0ed9e0ce8 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 e3780b34eb4..2932363744c 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 df8cfce77f1..b9ae8e68e0d 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 bf25b396f29..30d03c25779 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 81a304ba273..9dd3287c13b 100755 --- a/t/db_dependent/Koha/SearchFilters.t +++ b/t/db_dependent/Koha/SearchFilters.t @@ -19,7 +19,8 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::NoWarnings; +use Test::More tests => 5; use Koha::Database; use Koha::SearchFilters; diff --git a/t/db_dependent/Koha/Session.t b/t/db_dependent/Koha/Session.t index e9cce064c3f..90f9ba94bab 100755 --- a/t/db_dependent/Koha/Session.t +++ b/t/db_dependent/Koha/Session.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use t::lib::TestBuilder; use C4::Auth; diff --git a/t/db_dependent/Koha/SharedContent.t b/t/db_dependent/Koha/SharedContent.t index fab02d4170d..12ff1f4a11e 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 1146c3330d9..e096f614d9c 100755 --- a/t/db_dependent/Koha/Statistic.t +++ b/t/db_dependent/Koha/Statistic.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Koha::DateUtils qw(dt_from_string); use Koha::Statistics; diff --git a/t/db_dependent/Koha/Statistics.t b/t/db_dependent/Koha/Statistics.t index 30b6e571cf4..60fb2f955b2 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 e32f871bf5c..4211c1af596 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 6aa26c4f40e..af15e657b52 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 1eff86ca542..6ac8a52f315 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 1de342436e8..47dab42f7ee 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 1254248e43d..11516ee5709 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 a1a3939fd78..b8a730a11dd 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 dc2a438a0eb..108043d1f99 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 770bee33b69..517d238288b 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 0d507ad1357..3646c2e3a13 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 3a7cad98ec2..7ecb81daaf3 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 a358da3d3f4..d082329d310 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 d897838b7d8..0ca1b26b5bc 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 8ba60d89968..419fce09f5e 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 59726397e50..c3f3332fb09 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 27428f0bbe1..3dc1da0ede5 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 4e34e602884..d358b5ba7c4 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 7000c1ac5ae..13f8f6d618b 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 9c361bde70b..ba9e40093ef 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 0aa04fa6de7..c1b18718f74 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 adee018514f..90e98335145 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 ec33fa89fc7..bf0754e457b 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 b331d06b370..ba28db54558 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 251287a530f..1e2131c2761 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 a5bfe87f319..fb409fd18c0 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 fef044292ee..28362f4e031 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 20d2454c99d..d5af37bd869 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 a13f1095545..e7560adf555 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 50a47c31cee..aff7ee083ac 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 74d0e9fd92c..9786b798e39 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 f6e7c65f957..e36c7ef039c 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 5912d8ff2fb..767a5ea87f2 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 70e38f09d18..ff220067aeb 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 6f6dbd81c3b..e80c50004be 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 dd51feb707e..242f14184fb 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 63402d7ccc3..c4b73eaf332 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 d8c5c97289d..c34eb99f7c1 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 88315524c02..70322e101fe 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 814a3064260..f73aa68bc61 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 61a37101291..48b4e1b3721 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 524baf37797..cd65049688b 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 6271f125cdd..2f57cd93dc0 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 7139c7e4e0a..dd1ba8e5a74 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 98a04d30c9e..28a71ee74ae 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 1d8e1e2296d..231b764a22d 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 31a85711502..84559344593 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 3a49e7d68e3..b290bb1c6ba 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 35c836a97c4..a475f62dc7c 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 00e699bd957..91460c2408d 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 9a878da8dcb..df842065da8 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 d4d211a9dc4..5a06d9c1388 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 2aaad4bdd07..a2de4e79b02 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 35adf6919db..ff4b9674bbf 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 cda2dcbea42..d8848b7825b 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 8b4c38fd54a..b09a802c57e 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 bbf4bb3a7d0..a112974c6a8 100755 --- a/t/db_dependent/Members/IssueSlip.t +++ b/t/db_dependent/Members/IssueSlip.t @@ -19,7 +19,8 @@ use Modern::Perl; use Data::Dumper; # REMOVEME with diag -use Test::More tests => 3; +use Test::NoWarnings; +use Test::More tests => 4; use Test::MockModule; use Test::MockTime qw( set_fixed_time ); use t::lib::TestBuilder; diff --git a/t/db_dependent/Members/Statistics.t b/t/db_dependent/Members/Statistics.t index fc1a62049cd..5994ee28e45 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 c100dd5450a..f8c444c3e01 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 1a514232af2..c85c5a4a4e1 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 0489de6457b..b529e552f77 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 5da76b4f36d..6b1c55e427e 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 327643f2672..d55ff9d630a 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 02001a913b0..201cb803946 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 ae47365a9bd..e10e9be8595 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 b0cfc74552b..0deff597901 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 310458d1193..369194b7270 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 b5024bc4df9..a1ca3539d6f 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 48e21c94d62..7f17fc9ec70 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 797a2d74376..1f303e6bee9 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 23e8ddca181..704ccd7c5f7 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 8da4915d108..a6eae564a65 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 14a1f49164c..c761dba96d7 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 dacac11bf3e..a0af30fa634 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 b2edc8d8ff4..8e2f9a05efc 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 375b20b7873..f7e8fc09340 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 2d93fa7831b..1bb3987163f 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 2b4ade38ac9..c98f522beff 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 9c9b237c8e3..676d8254622 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 495f8e05b17..3091990bbf8 100755 --- a/t/db_dependent/Record/Record.t +++ b/t/db_dependent/Record/Record.t @@ -25,7 +25,8 @@ use warnings; use constant WHEREAMI => 't/db_dependent/Record/testrecords'; # specify the number of tests -use Test::More tests => 21; #FIXME Commented out two failing tests +use Test::NoWarnings; +use Test::More tests => 22; #FIXME Commented out two failing tests #use C4::Context; use C4::Record qw( marc2marc marc2marcxml marc2dcxml changeEncoding ); diff --git a/t/db_dependent/Record/marcrecord2csv.t b/t/db_dependent/Record/marcrecord2csv.t index bf3df2101fd..0c7254d94e2 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 9d7b4efc325..48ba21cf603 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 9cf56abef3f..5f028e5ff85 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 e84ccc2e004..7b339733865 100755 --- a/t/db_dependent/Reports/Guided.t +++ b/t/db_dependent/Reports/Guided.t @@ -20,7 +20,8 @@ use Modern::Perl; -use Test::More tests => 12; +use Test::NoWarnings; +use Test::More tests => 13; use Test::Warn; use t::lib::TestBuilder; diff --git a/t/db_dependent/Reserves/AutoUnsuspendReserves.t b/t/db_dependent/Reserves/AutoUnsuspendReserves.t index e1fefc9fd59..d7e0b83b612 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 03029d83331..96d6619bbd3 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 56da6d5036d..9eb1f9e984f 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 664f9a1b0c4..972bed2d3a0 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 855e33897c3..4cc2a53383e 100755 --- a/t/db_dependent/RotatingCollections.t +++ b/t/db_dependent/RotatingCollections.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 53; +use Test::NoWarnings; +use Test::More tests => 54; use C4::Context; use C4::RotatingCollections qw( AddItemToCollection CreateCollection DeleteCollection GetCollection GetCollectionItemBranches GetCollections GetItemsInCollection RemoveItemFromCollection TransferCollection UpdateCollection isItemInAnyCollection isItemInThisCollection ); use C4::Biblio qw( AddBiblio ); diff --git a/t/db_dependent/SIP/ILS.t b/t/db_dependent/SIP/ILS.t index b0bcdbfd8d4..c3522906443 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 dea011311a2..87a80f153bb 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 2c95245ed21..048c1731214 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 8d6d5747760..53b943c405e 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 afdef84fa4a..e126816bb1b 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 00ce65abdab..3a38fe66030 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 4c084e121a4..0bd7b16356b 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 0c9ce3dffef..40003a7ba0f 100755 --- a/t/db_dependent/Serials.t +++ b/t/db_dependent/Serials.t @@ -17,7 +17,8 @@ use Koha::Acquisition::Booksellers; use t::lib::Mocks; use t::lib::TestBuilder; use Test::MockModule; -use Test::More tests => 63; +use Test::NoWarnings; +use Test::More tests => 64; BEGIN { use_ok('C4::Serials', qw( updateClaim NewSubscription GetSubscription GetSubscriptionHistoryFromSubscriptionId SearchSubscriptions ModSubscription GetExpirationDate GetSerials GetSerialInformation NewIssue AddItem2Serial DelSubscription GetFullSubscription PrepareSerialsData GetSubscriptionsFromBiblionumber ModSubscriptionHistory GetSerials2 GetLatestSerials GetNextSeq GetSeq CountSubscriptionFromBiblionumber ModSerialStatus findSerialsByStatus HasSubscriptionStrictlyExpired HasSubscriptionExpired GetLateOrMissingIssues check_routing addroutingmember GetNextDate )); diff --git a/t/db_dependent/Serials/Claims.t b/t/db_dependent/Serials/Claims.t index afc3a18e663..7fcd5029701 100755 --- a/t/db_dependent/Serials/Claims.t +++ b/t/db_dependent/Serials/Claims.t @@ -1,5 +1,6 @@ use Modern::Perl; -use Test::More tests => 17; +use Test::NoWarnings; +use Test::More tests => 18; use C4::Acquisition; use C4::Budgets qw( AddBudgetPeriod AddBudget ); diff --git a/t/db_dependent/Serials/Frequency.t b/t/db_dependent/Serials/Frequency.t index 02a64f7f99f..050d15f1d38 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 5a5e6b00576..5949c06747a 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 4081dea09a4..fa1816f3b44 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 270568de609..fa413277059 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 65e1f420f1c..d02b8d13cd9 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 84ab1c01b24..bff5d0b8de2 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 1eed7db3188..7ef2774e9a0 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 d0a1b7a6157..3273edc4cf4 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 497cc1bc7fd..97aaa03bf8d 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 27d37419ad0..389ee11665a 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 ebf69ce402e..575ff8dc2f8 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 b0f51c3a3ec..88195c7da8f 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 c6b3afee256..ba5e949445b 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 9d5401f1400..4759c504465 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 ae94473e223..afa49edf7ed 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 4e310b6a9d5..6754f35a4cf 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 c25a97da7da..09ad198f51a 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 4113cbde26b..516cd00293c 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 b72ebd7b413..d9757d02148 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 95c519f0f07..1c4e77e17ed 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 722a229f0f4..9270ce330d3 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 163696d190e..421ed0cb478 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 04580d7912a..17bb49fca20 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 50b158acee2..162983ea6d6 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 be3a16935a7..9aef7ee906a 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 5d7300c6f50..b2d9cd5645f 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 4a35f018f8f..f98624b1a9e 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 2f26e820763..8bbb96b7398 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 033891f8169..b84cf0b73b2 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 ebab637078b..ece1d23f1d5 100755 --- a/t/db_dependent/Templates.t +++ b/t/db_dependent/Templates.t @@ -19,7 +19,8 @@ use Modern::Perl; use CGI; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Deep; use Test::MockModule; use Test::Warn; diff --git a/t/db_dependent/TestBuilder.t b/t/db_dependent/TestBuilder.t index 9946df3174f..4649e171d79 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 8b3fa3c1f07..bd9d8d15c50 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 2d72af35d5d..70d0f5ab4ec 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 de4398a7c73..bd9b57bd613 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 25eb2e4bdcb..59efae3eb79 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 4f7ef3c84b4..27706e7a056 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 b41939a5e30..d82c965a93d 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 56283fe9f82..938ebac5711 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 b02cb891ff8..432db8337b0 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 5ed470daaf4..8166a7385f1 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 6adc66dfcd5..d26afd4acd3 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 00d6d8a6f67..a3f8ad1ca7b 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 9ba0ffb060c..539c4fc257a 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 5d4f827f58b..4a11fc20fc4 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 d4e8e97445e..6cc1c5d5295 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 808dc31bb9b..dbccadb9d30 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 1a322112f4d..02b8318ac3f 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 aa548fc4600..a1cf0a7eaf4 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 17fcb0a6c06..3d767aed88f 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 ab7646d0f96..8afb0d590eb 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 779f00156ac..ebc247ef2a5 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 8be6e47fa4d..da350cc44f4 100755 --- a/t/db_dependent/api/v1/circulation_rules.t +++ b/t/db_dependent/api/v1/circulation_rules.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use Test::Mojo; use t::lib::TestBuilder; diff --git a/t/db_dependent/api/v1/cities.t b/t/db_dependent/api/v1/cities.t index b381b93a9bb..08e4f3a647e 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 e7de87b8386..7385d9edde3 100755 --- a/t/db_dependent/api/v1/clubs_holds.t +++ b/t/db_dependent/api/v1/clubs_holds.t @@ -18,7 +18,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::NoWarnings; +use Test::More tests => 3; use Test::Mojo; use Test::Warn; diff --git a/t/db_dependent/api/v1/deleted_biblios.t b/t/db_dependent/api/v1/deleted_biblios.t index 625e64fac48..26d43cdf606 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 fc0c38fa3c0..edc4b80b74f 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 b965d88821a..41a4466fed4 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 7a627aee65c..ed6d8f3bfd2 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 a5968543c65..ea552b09f8b 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 ed7c030ae69..aa76e3e3de3 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 fcb7eba1b02..6dcdb5953e9 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 7ace83e9a3d..bce6412c29e 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 93a5c8240af..08f32e5dd0d 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 e2bd68f3028..60755eafb9f 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 0ed9f19d896..d7c20d3a7fc 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 51f1fcd87fb..553a6804308 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 a6e712138f4..754d5e7a768 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 t::lib::TestBuilder; 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 24edcb21375..dec764a451e 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 09572ceab79..11397e9f7b3 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 04268c1db81..7dfb650bc7b 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 6bcc8bd42a4..fbf0c466355 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 c67b5124e00..4fa796a5760 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 58ac8e9d774..1657335ef0e 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 ed744a80acf..a164fb59a84 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 cf73020ec74..86597502ac7 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 a2260a23d33..0ce41b6fa85 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 88c074c5585..d4542007da3 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 fd203c31257..6477ac26e3a 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 1b3a1bdffac..6fbca6950a1 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 3196bbbb3bc..9d2786ef7c2 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 2d5592d0911..f772632fe26 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 fea46e265ff..aa582b3173c 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 7fae9293fc5..04b3ca0be1f 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 da4e1728623..954805eb118 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 c9381796e86..78eb9a21b3a 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 fd6ab5479e6..fc20f390bcd 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 e5d891200f4..26b78bc8532 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 ecad6041e7c..e720320c722 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 4fb5836df44..a14d3bc3be6 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 63a840b6094..d869ce0270a 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 05a78787dac..460055c4903 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 d7bf3def849..8144e0ac7d7 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 c7a494c681d..7e0247d1591 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 8f79a4b81b3..83483f6888d 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 9e444acbf0c..5b817ea986c 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 96843a6f413..14b3016e529 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 b34bf42af4a..16763ea7883 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 4f055fcf9d3..dd7a9fbbd5c 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 c29c0d7f1f4..1aea653a194 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 d505fc99d94..a1508fc88c9 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 5a3653fd3c8..2554b9f902d 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 f807f21ea2b..2346e20a82a 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 edf11ee7090..c88819d60fa 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 177698e1a78..15af0272d2f 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 c43557adbef..30159b54387 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 6b16603b609..9c56257536d 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 d509d0f8f8c..acc186360dc 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 017380c843b..8aa4796929c 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 0281470a1bf..59bedd59103 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 cac5172acbc..ffb531d4697 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 5f7c7c0df3f..fa6d248f487 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 2519256d91a..8118618a90a 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 59490401506..e9bd319ad3f 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 61517453ce4..7b1d11fa33e 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 ec5c48c98ed..cb07653d678 100755 --- a/t/db_dependent/check_kohastructure.t +++ b/t/db_dependent/check_kohastructure.t @@ -16,7 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 1; +use Test::NoWarnings; +use Test::More tests => 2; use File::Slurp; use C4::Context; my $content = read_file( C4::Context->config("intranetdir") diff --git a/t/db_dependent/check_sysprefs.t b/t/db_dependent/check_sysprefs.t index 3d194e4a562..5f789c35897 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 41de50750c7..906e121afd2 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 d8a3286b321..de21b59919f 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 2e5bcdeba08..c0fcafd280e 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 0c18473ebb5..9261a7ff029 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 511cf1a7ffb..9fc953c95fe 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 60a4d6522c0..4fbca544489 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 ce9841b81ff..73e7f501f50 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 4dc1d4362b1..fe35fd7a350 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 b046ff9eb99..4824e129fd3 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 9ef2e22cb0e..19753ee2699 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 acb5cac3eb9..aedf5140698 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 2eaeaaaa31b..6b0ba2a5358 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 e5b63309555..54024ce5bcf 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 b1a1bf7cf1f..b561225c489 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 f477e99f637..c7ceec50020 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 3a1b0e79298..0f98723b019 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 70b8960fe80..0df3908051d 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 8a218e3d3dc..57b64d4aa8b 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 f214bc77199..54680c3ec48 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 8b9c77b07bd..d4bf96e1256 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 3f2fdebfb2e..d25d2b731a0 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 586c053ca08..3d442bd189a 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 0a24be69822..fc7df20cb1b 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 64b13b78a91..21beffd7dee 100755 --- a/t/timezones.t +++ b/t/timezones.t @@ -3,7 +3,8 @@ use Modern::Perl; use C4::Context; use Koha::Config; -use Test::More tests => 5; +use Test::NoWarnings; +use Test::More tests => 6; use Test::Warn; use t::lib::Mocks; -- 2.34.1