]> git.koha-community.org Git - koha.git/commit
Bug 14468: followup to fix tests
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Fri, 23 Oct 2015 16:40:45 +0000 (13:40 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 27 Oct 2015 13:12:32 +0000 (10:12 -0300)
commita299eef12df194605a6f656b7a2ee92bf52c690d
treefbcecc2e5dc3fa7435a09a69fe9e0af6a4ef7510
parentfea62637df0581d19789bf9a13b4c00ba630856a
Bug 14468: followup to fix tests

This patch fix an expected  test result.
Also changes a comparison for the return value to 'delete'
layout sub, in case of success it returns 'undef' and triggers
the message 'use of uninitialized value $del_results ...'

To test:
1) Whitout this patch

prove t/db_dependent/Labels/t_Layout.t

fails.

Also note the message
"Use of uninitialized value $del_results in string ne at t/db_dependent/Labels/t_Layout.t line 110."
for using the return value of delete layout (undef on success!)

2) Apply the patch
3) Test pass and no more message

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/Labels/t_Layout.t