Koha-clms/t/db_dependent/Koha
Lucas Gass 1213b9311f Bug 33176: Enforce bad values
1. Turn on RequirePaymentType
2. Create a manual invocie on a patron account
3. Go to pay it, 'Payment type:' is marked as required.
4. In the inscept the select input ( #payment_type ) with your browser's dev tools. Removed the required attribute.
5. You are able to make the payment without a payment type.
6. Apply patch and restart_all
7. Try 4-5 again. This time you should get a 500 error and the payment should not go through.
8. Try a paymnet again this time manipulate the DOM and change the value of 'CASH' to something else like 'SOMETHINGELSE'.
9. Try to submit the payment and again you will get a 500 error. The payment should not go through.
10. Turn RequirePaymentType off. Try a payment with a payment type, you shoud be successful.
11. Make sure tests will pass

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 676d263687)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 6be23e7251)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
2023-07-18 10:08:37 +00:00
..
Account Bug 29021: (QA follow-up) Remove useless warnings 2023-01-31 17:12:48 +00:00
Acquisition Bug 33653: Never consider received orders as late 2023-05-15 12:06:25 +00:00
Auth Bug 31378: (QA follow-up) Tidy tests 2022-11-08 14:40:17 -03:00
BackgroundJob Bug 32594: (QA follow-up) Adjust tests 2023-05-03 13:08:00 +01:00
BackgroundJobs Bug 32366: (bug 30460 follow-up) Add tests 2022-12-05 12:36:18 +00:00
Biblio Bug 16522: (follow-up) If no 773$w, try to return host record 2023-01-31 17:17:28 +00:00
BiblioUtils Bug 29625: Add test for get_all_biblios_iterator 2022-02-21 15:15:47 -10:00
Cash Bug 27779: (QA follow-up) Fix unit test 2022-08-09 07:37:03 -03:00
Charges Bug 32351: Fix t/db_dependent/Koha/Charges/Sales.t 2022-12-02 10:55:39 +00:00
Checkouts Bug 33362: Allow return claims to be resolved even if the issue has since been delete from the database 2023-06-08 17:15:33 +00:00
CirculationRules Bug 29705: In test suite merge IssuingRules with CirculationRules 2022-05-06 10:33:10 -10:00
Club Bug 29857: (follow-up) Fix t/db_dependent/Koha/Club/Hold.t 2022-03-02 09:40:05 -10:00
Config Bug 32478: (QA follow-up) Shebang and chmod for Koha/Config/SysPrefs.t 2023-07-18 08:58:37 +00:00
ERM Bug 32267: (bug 32154 follow-up) Fix Agreements.t 2022-11-18 12:04:25 -03:00
Edifact Bug 30135: Unit tests 2022-04-13 15:55:39 +02:00
Filter Bug 33214: (follow-up) Make tests less fragile 2023-03-14 10:44:25 +00:00
Import Bug 32437: Add replace method to Koha::Import::Record objects 2023-04-16 17:47:45 +01:00
Item Bug 24606: (QA follow-up) Fix Template.t 2022-11-22 13:33:39 -03:00
Items Bug 29781: Unit test 2022-02-16 11:51:11 -10:00
Library
…
Objects Bug 33083: Add a generic class to handle methods for collections of records 2023-03-21 09:33:58 +00:00
Old Bug 26648: Add tests 2022-10-12 09:56:48 -03:00
Patron Bug 31095: Remove GetDebarments from Restriction/Type.t 2023-02-01 15:38:23 +00:00
Patrons Bug 27920: Add ability to update patron expiration dates when importing patrons 2022-11-09 14:37:07 -03:00
Plugins Bug 29274: Remove z_reset.t 2022-12-05 11:04:21 +00:00
REST Bug 32713: (QA follow-up) Tests now require more complex structures 2023-03-21 16:31:39 +00:00
SMTP Bug 29427: Regression tests 2021-11-08 12:16:31 +01:00
SearchEngine Bug 33206: Unit test 2023-05-15 12:08:08 +00:00
Subscription
…
Tags
…
Template/Plugin Bug 32539: Add tests 2023-02-13 09:20:47 +00:00
UI/Form/Builder Bug 32484: (QA follow-up) Polishing unit test 2023-05-11 11:38:20 +01:00
XSLT
…
Z3950Responder Bug 29234: Further clean Z3950 Tests 2023-04-16 18:11:26 +01:00
Account.t Bug 33176: Enforce bad values 2023-07-18 10:08:37 +00:00
ActionLogs.t
…
AdditionalContents.t Bug 29144: Add $contents->find_best_match, $library->opac_info 2022-09-16 09:55:19 -03:00
ApiKey.t Bug 28772: Make validate_secret return 1|0 2021-09-30 09:48:41 +02:00
ArticleRequest.t Bug 29759: (QA follow-up) Remove abs from the test 2022-01-31 21:55:39 -10:00
ArticleRequests.t Bug 29082: Simplify tests 2021-10-07 10:54:59 +02:00
Authorities.t Bug 29897: Remove 'linkage' leftover 2022-08-09 10:58:48 -03:00
BackgroundJob.t Bug 32394: Add tests 2022-12-15 13:55:36 +00:00
BackgroundJobs.t Bug 31969: Use filter_by_last_update 2022-11-25 09:40:09 -03:00
Biblio.t Bug 21983: Add Koha::Biblio->ill_requests 2023-06-12 11:14:01 +00:00
BiblioFrameworks.t
…
Biblios.t Bug 32894: Fix test 2023-07-12 09:10:18 +00:00
Checkout.t Bug 30275: Add Unit test for renewals relation 2022-07-05 09:46:22 -03:00
Checkouts.t Bug 30612: Rename other occurrences 2022-08-01 09:59:05 -03:00
CirculationRules.t Bug 23012: (QA follow-up) No need to create and delete rules for branch 2022-10-24 17:43:30 -03:00
Cities.t
…
ClassSortRules.t
…
ClassSources.t
…
ClassSplitRules.t
…
CoverImages.t
…
CsvProfiles.t
…
CurbsidePickups.t Bug 32891: (QA follow-up) Fix perlcritic error 2023-02-24 11:11:23 +00:00
Database.t
…
Desks.t
…
Encryption.t Bug 28998: (follow-up) Check missing encryption key in script and module 2022-05-04 05:18:31 -10:00
Hold.t Bug 33791: (QA follow-up) Stick to 'item_id' for the parameter name 2023-06-08 17:09:06 +00:00
Holds.t Bug 32650: Prevent Koha/Holds.t to fail randomly 2023-01-25 14:33:47 +00:00
Illrequests.t Bug 22440: Add Koha::Illrequests->filter_by_visible 2023-05-12 08:16:28 +01:00
Item.t Bug 33844: Modify test to show problem 2023-07-18 09:07:02 +00:00
ItemTypes.t
…
Items.t Bug 23012: (follow-up) Fix t/db_dependent/Koha/Items.t 2022-10-28 16:17:15 -03:00
KeyboardShortcuts.t
…
Libraries.t Bug 29844: Fix t/db_dependent/Koha/* 2022-02-09 15:36:23 -10:00
Library.t Bug 29144: Add $contents->find_best_match, $library->opac_info 2022-09-16 09:55:19 -03:00
MarcSubfieldStructures.t
…
Notices.t
…
Object.t Bug 22440: (follow-up) Nothing is forever 2023-05-12 14:38:49 +01:00
Objects.t Bug 29844: Remove use of wantarray from Koha::Objects 2022-02-09 15:36:23 -10:00
Old.t
…
Patron.t Bug 33229: (RMaint follow-up) Remove errant test from bug 31051 2023-04-27 13:30:11 +01:00
Patrons.t Bug 32351: Fix Koha/Patrons.t 2022-12-02 10:55:14 +00:00
Pseudonymization.t Bug 31201: Prevent Pseudonymization.t to fail 2022-07-21 09:39:28 -03:00
Quotes.t
…
Ratings.t
…
Recall.t Bug 30291: Changes to tests 2022-05-05 11:17:36 -10:00
Recalls.t Bug 30291: (QA follow-up) Fix for revert to recall_id 2022-05-05 11:17:36 -10:00
Reports.t Bug 29579: (QA follow-up) Fix up t/db_dependent/Koha/Reports.t 2022-08-01 14:37:09 -03:00
Reviews.t
…
SMS_Providers.t
…
SearchField.t
…
SharedContent.t
…
Statistics.t
…
Subscription.t
…
Suggestion.t
…
Suggestions.t Bug 30663: Add Koha::Suggestions helper methods 2022-05-05 10:26:41 -03:00
Tags.t
…
Virtualshelf.t Bug 30933: Unit tests 2022-07-20 09:04:07 -03:00
Virtualshelves.t Bug 31288: Regression tests 2022-08-03 11:42:39 -03:00
Z3950Servers.t Bug 30571: Z3950Servers.t - Add another subtest 2022-10-03 08:29:25 -03:00