]> git.koha-community.org Git - koha.git/commit
Bug 18749 - xt/sample_notices.t fails
authorLee Jamison <ldjamison@marywood.edu>
Wed, 7 Jun 2017 11:34:29 +0000 (11:34 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 15 Jun 2017 12:12:42 +0000 (14:12 +0200)
commita36282ca0b39b2085f1cefabefe15b9552235d70
treebd3db6f77d9e6e66a0359274ddda3951fadd1440
parentcc4c862715c3d009cdc14dd51af59ffee2e4a98d
Bug 18749 - xt/sample_notices.t fails

Bug Description:
When performing a unit test on xt/sample_notices.t with the command
'prove xt/sample_notices.t' 11 tests fail with the error message
"No sample notice to delete".

Cause of bug:
The failures are caused by an incorrect file path on Line 25 of
xt/sample_notices.t.

Patch Description:
This patch corrects the failures by changing $base_notices_file from
"en/default/sample_notices.sql" to "en/mandatory/sample_notices.sql"

Test Plan:
1) Drop into koha-shell and run the command 'prove xt/sample_notices.'
2) 11 unit tests fail.
3) Apply the patch.
4) Re-run 'prove xt/sample_notices.t'
5) All of the tests pass now.
6) Quit out of koha-shell

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 323cc1501fc91d67e8ecaa0a2cdf272f642d8e46)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
xt/sample_notices.t