Bug 11545: Increasing test coverage for Languages.pm
To test 1. Run prove t/Languages.t 2. Apply patch 2. Run prove t/Languages.t again and notice: More tests are run Signed-off-by: alex_h <dhorsman@xtra.co.nz> Signed-off-by: Magnus Enger <magnus@enger.priv.no> Adds another passing test. I took th liberty of moving the test plan from the subject to the commit message. :-) Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Tests pass :) Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
0f82b21204
commit
a52919a222
|
|
@ -6,7 +6,7 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Test::More tests => 4;
|
||||
use Test::More tests => 5;
|
||||
|
||||
BEGIN {
|
||||
use_ok('C4::Languages');
|
||||
|
|
@ -17,3 +17,5 @@ isnt(C4::Languages::_get_themes(), undef, 'testing _get_themes doesnt return und
|
|||
ok(C4::Languages::_get_language_dirs(), 'test getting _get_language_dirs');
|
||||
|
||||
is(C4::Languages::accept_language(),undef, 'test that accept_languages returns undef when nothing is entered');
|
||||
|
||||
ok(C4::Languages::getAllLanguages(), 'test get all languages');
|
||||
|
|
|
|||
Loading…
Reference in New Issue