From a52919a222c212dcd6a1749f76f7944bbf3d3373 Mon Sep 17 00:00:00 2001 From: merllissia Date: Tue, 14 Jan 2014 14:18:35 +1300 Subject: [PATCH] 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 Signed-off-by: Magnus Enger 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 Tests pass :) Signed-off-by: Galen Charlton --- t/Languages.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/Languages.t b/t/Languages.t index 5918d95f5f..f3bac3921a 100755 --- a/t/Languages.t +++ b/t/Languages.t @@ -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'); -- 2.11.4.GIT