Koha-clms/t/db_dependent/Koha
Martin Renvoize 60f8ca789f Bug 22254: Correction to datehandling in test
Adding 13 months is not always the same as adding 1 month and then
adding 12 months in DateTime maths.  This patch rectified the test
to match the correct behaviour in koha.

Test plan.

1) Modify the test (around line 268) to test against the suspect
   leap date of 2019-01-31 and watch the test fail.
2) Apply the patch (which also adds this modification to test
   for such a leap date) and watch the test now pass.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 1da0ba48b6)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 413f34ba24)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-02-12 05:47:07 +00:00
..
Account Bug 22006: Add tests 2019-01-23 23:11:30 +00:00
Acquisition Bug 20557: Prevent Koha/Acquisition/Order.t to fail randomly 2018-04-10 13:09:22 -03:00
Filter Bug 19040: Refactor GetMarcBiblio parameters 2017-08-25 10:23:42 -03:00
Item Bug 14334: Remove AutoCommit from tests 2018-12-22 22:03:55 +00:00
Library Bug 21082: Add new admin page for overdrive 2018-10-26 12:14:59 +01:00
Patron Bug 20584: Prevent Koha/Patron/Categories.t to fail randomly 2018-04-13 15:09:56 -03:00
Patrons Bug 21465: Don't throw duplicate userid error if userid belongs to the matched patron 2018-12-22 16:29:08 +00:00
REST Bug 22107: Make tests use a simpler class, with no FK 2019-01-23 18:05:58 +00:00
SearchEngine Bug 19604: Unit tests 2018-08-06 13:57:52 +01:00
Subscription Bug 20400: Add routing list tab in OPAC 2018-04-20 13:34:41 -03:00
Template/Plugin Bug 21352: Allow plugins to add CSS and Javascript to Staff interface 2018-10-08 09:51:44 +01:00
Account.t Bug 20980: (RMaint follow-up) - Fix for missing use after merge 2018-08-03 14:10:25 +01:00
ApiKeys.t Bug 20568: (QA follow-up) Test client_id and secret are not overwritten 2018-05-09 12:55:59 -03:00
Authorities.t Bug 14769: Put ControlledIndicators to work 2018-04-12 10:50:35 -03:00
BiblioFrameworks.t Bug 16155: [QA Follow-up] Add transaction to BiblioFrameworks.t 2016-05-04 13:47:58 +00:00
BiblioUtils.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
Biblios.t Bug 20176: [sql_modes] Set biblio.datecreated to NOW if not defined 2018-02-16 13:03:58 -03:00
Checkouts.t Bug 21432: (bug 20899 follow-up) Fix patron's name display for deleted patrons 2018-10-08 09:41:45 +01:00
Cities.t Bug 20144: [sql_modes] Shorten cities.city_zipcode 2018-02-13 13:58:51 -03:00
ClassSortRules.t Bug 19929: Add Koha objects for class sources and sorters 2018-03-23 11:45:38 -03:00
ClassSources.t Bug 19929: Add Koha objects for class sources and sorters 2018-03-23 11:45:38 -03:00
CsvProfiles.t Bug 20144: [sql_modes] Add default values for export_format columns 2018-02-13 13:58:51 -03:00
GetDailyQuote.t Bug 14334: Remove AutoCommit from tests 2018-12-22 22:03:55 +00:00
Holds.t Bug 19059: Remove CancelReserve - add new tests 2017-09-12 12:42:59 -03:00
IssuingRules.t Bug 19301: (QA follow-up) Add a few simple tests 2018-02-13 13:36:01 -03:00
ItemTypes.t Bug 12768: Fix tests - itemtypes.rentalcharge is now decimal(28,6) 2017-10-23 12:06:20 -03:00
Items.t Bug 20144: [sql_modes] Shorten items.barcode 2018-02-13 13:58:51 -03:00
Libraries.t Bug 16735: Migrate library search groups into the new hierarchical groups 2018-02-12 15:41:25 -03:00
MarcSubfieldStructures.t Bug 19096: Add update DB entry to sync kohafield in all frameworks 2017-12-11 11:34:08 -03:00
News.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
Notices.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
Object.t Bug 21133: [18.05.x] Fix use statements order 2018-10-05 08:48:39 +01:00
Objects.t Bug 21912: (QA follow-up) Do not delete existing patrons 2019-01-23 17:45:58 +00:00
Patrons.t Bug 22254: Correction to datehandling in test 2019-02-12 05:47:07 +00:00
Ratings.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
Reports.t Bug 20052: (follow-up) Fix QA tool complaints and bad copy 2018-04-02 18:08:06 -03:00
Reviews.t Bug 18403: Patron reviews 2018-02-12 15:41:41 -03:00
SMS_Providers.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
Subscription.t Bug 19855: Move getalert, addalert and delalert to Koha::Subscription 2018-04-23 14:22:15 -03:00
Suggestions.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
Z3950Servers.t Bug 20047: Add Koha::Z3950Server Oject and use it to get server count 2018-04-20 13:34:41 -03:00