Bug 11545: Increasing test coverage for Languages.pm
authormerllissia <manuelimel@gmail.com>
Tue, 14 Jan 2014 01:18:35 +0000 (14:18 +1300)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 14 Jan 2014 20:46:59 +0000 (20:46 +0000)
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>
t/Languages.t

index 5918d95..f3bac39 100755 (executable)
@@ -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');