Koha-clms/t/db_dependent/api/v1
Martin Renvoize 9440c4adfe
Bug 40219: Add unit test to verify welcome email is not sent on validation failure
This test ensures that when extended attribute validation fails during
patron creation via the API, no welcome email is sent. This validates
the fix where extended_attributes() validation was moved before the
welcome email is enqueued.

Test plan:
1. Apply this patch
2. Run: prove t/db_dependent/api/v1/patrons.t
3. Verify all tests pass, including the new test that confirms no welcome
   email is sent when extended attribute validation fails

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
(cherry picked from commit 4d2f80925d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2026-02-18 14:54:56 +01:00
..
items Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
public Bug 28965: Unit tests 2024-11-08 16:09:23 +01:00
acquisitions_baskets.t Bug 38204: Tidy 2024-10-30 07:47:42 +01:00
acquisitions_funds.t
…
acquisitions_orders.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
acquisitions_vendor_issues.t
…
acquisitions_vendors.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
advanced_editor_macros.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
article_requests.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
auth.t
…
auth_authenticate_api_request.t
…
auth_basic.t
…
authorised_values.t
…
authorities.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
biblios.t Bug 35246: Unit tests 2025-08-06 13:25:36 +00:00
bookings.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
cashups.t
…
checkouts.t Bug 28907: REST - Remove allow-owner from public checkouts route 2025-02-18 19:17:17 +01:00
circulation_rules.t
…
cities.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
clubs_holds.t Bug 38929: Regression tests 2025-04-22 23:02:21 +02:00
deleted_biblios.t Bug 38678: Regression tests 2025-02-04 21:40:48 +01:00
edifact_files.t
…
erm_agreements.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
erm_counter_files.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
erm_counter_logs.t Bug 36627: Fix typo "embeded" 2025-03-19 23:57:21 +01:00
erm_counter_registries.t
…
erm_custom_reports.t Bug 39345: 24.11 SQUASH 2025-10-16 07:47:17 +02:00
erm_documents.t
…
erm_eholdings_packages.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
erm_eholdings_resources.t
…
erm_eholdings_titles.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
erm_licenses.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
erm_sushi_services.t Bug 39007: Update API spec and unit test 2025-03-19 23:57:55 +01:00
erm_usage_data_providers.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
erm_usage_titles.t
…
erm_users.t Bug 38322: (QA follow-up) Fix spelling 2024-11-13 17:00:51 +01:00
extended_attribute_types.t
…
holds.t Bug 40372: Remove warning from api/v1/holds.t 2025-08-01 15:35:37 +02:00
idp.t
…
ill_backends.t
…
ill_batches.t
…
ill_batchstatuses.t Bug 38929: Regression tests 2025-04-22 23:02:21 +02:00
ill_requests.t
…
import_batch_profiles.t Bug 38929: Regression tests 2025-04-22 23:02:21 +02:00
import_record_matches.t
…
item_groups.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
item_types.t
…
items.t Bug 38630: Make the REST API respect KohaOpacLanguage cookie 2025-09-29 09:34:42 +02:00
jobs.t Bug 39771: Regression tests 2025-09-29 11:59:05 +02:00
libraries.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
oauth.t
…
pagination.t
…
password_validation.t
…
patron_categories.t
…
patrons.t Bug 40219: Add unit test to verify welcome email is not sent on validation failure 2026-02-18 14:54:56 +01:00
patrons_accounts.t Bug 38932: Regression tests 2025-04-22 23:02:25 +02:00
patrons_checkouts.t
…
patrons_extended_attributes.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
patrons_holds.t Bug 39710: Unit test 2025-05-23 12:18:30 +02:00
patrons_password.t Bug 28097: REST - Remove allow-owner from public password route 2025-02-18 19:17:17 +01:00
patrons_password_expiration.t
…
patrons_recalls.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
preservation_Processings.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
preservation_Trains.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
preservation_WaitingList.t
…
provider.t
…
query.t
…
record_sources.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
responses.t
…
return_claims.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
search_filters.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
smtp_servers.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
stockrotation_rotas.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
stockrotationstage.t
…
suggestions.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
ticket_updates.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
tickets.t Bug 38929: (follow-up) Replace SWAGGER -> REST in the tests 2025-04-22 23:02:23 +02:00
transfer_limits.t Bug 38929: Regression tests 2025-04-22 23:02:21 +02:00
two_factor_auth.t Bug 40490: Remove warnings from GD::Barcode::QRcode - U24 2025-09-17 16:40:11 +02:00
unhandled_exceptions.t
…