Bug 30781: Add unit test for substitute with undefined value
authorFridolin Somers <fridolin.somers@biblibre.com>
Thu, 19 May 2022 03:47:18 +0000 (17:47 -1000)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Tue, 21 Jun 2022 13:32:55 +0000 (15:32 +0200)
commit9068cc1c4227646011974ffe20a6f11115ed2d3e
treea23df6712306c00656740ce1e7788994907aa2af
parentb318db02f0575cafe7eebf01faf505ba020f3bb7
Bug 30781: Add unit test for substitute with undefined value

Add unit test that generates warn.
This may be usefull as no regression test.

Run prove t/db_dependent/Letters.t
You see warn :
t/db_dependent/Letters.t .. 1/84 Use of uninitialized value $val in substitution iterator at /kohadevbox/koha/C4/Letters.pm line 607.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 2e0243c378158755660d7bc95e15ad32dd6d0ebf)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 3b3b7f0ad9b46f3c17ebc8f0fda7e05184fa5547)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
t/db_dependent/Letters.t