From 0288fc2f8d88947fd2ca66550491cb27a5f904e3 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Thu, 2 Feb 2017 14:04:05 -0500 Subject: [PATCH] Bug 18036: Replace accidentally deleted test. --- t/db_dependent/Templates.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Templates.t b/t/db_dependent/Templates.t index 09e75a1..bd1c45fc 100755 --- a/t/db_dependent/Templates.t +++ b/t/db_dependent/Templates.t @@ -49,7 +49,7 @@ my @tables = qw( biblio biblioitems borrowers items statistics subscription ); cmp_deeply( \@keys, \@tables, 'GetColumnDefs returns the expected tables'); subtest 'Testing themelanguage for unique themes (BZ 17982)' => sub { - plan tests => 4; + plan tests => 5; my $testing_language; my $module_language = Test::MockModule->new('C4::Languages'); @@ -68,6 +68,7 @@ subtest 'Testing themelanguage for unique themes (BZ 17982)' => sub { $testing_language = 'en'; my ($theme, $lang, $availablethemes) = C4::Templates::themelanguage( $htdocs, 'about.tt', $section, $cgi); is($lang,'en','Expected language: set en'); + cmp_deeply( $availablethemes, [ 'prog' ], 'We only expect one prog here' ); # trigger second case. $testing_language = q{}; -- 2.1.4