From 3088c2f56a8f21a696cab4d80dde20db8fa164b7 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 21 Sep 2022 13:54:54 +0000 Subject: [PATCH] Bug 31593: Remove Test::DBIx::Class from Context.t No need to keep it. Fixing a test description too. Test plan: Run t/db_dependent/Context.t Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 499562f0b80ca705e94581ccef0eebadce1ed6f9) Signed-off-by: Lucas Gass --- t/db_dependent/Context.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Context.t b/t/db_dependent/Context.t index 77a8924822..9b954efb24 100755 --- a/t/db_dependent/Context.t +++ b/t/db_dependent/Context.t @@ -52,7 +52,8 @@ $dbh->rollback; ok($koha = C4::Context->new, 'C4::Context->new'); my @keys = keys %$koha; my $width = 0; -if (ok(@keys)) { +ok( @keys, 'Expecting entries in context hash' ); +if( @keys ) { $width = (sort {$a <=> $b} map {length} @keys)[-1]; } foreach (sort @keys) { @@ -64,7 +65,6 @@ foreach (sort @keys) { ok($config = $koha->{config}, 'Getting $koha->{config} '); # Testing syspref caching -use Test::DBIx::Class; my $schema = Koha::Database->new()->schema(); $schema->storage->debug(1); -- 2.20.1