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 <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 499562f0b8)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 3088c2f56a)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
Marcel de Rooy 2022-09-21 13:54:54 +00:00 committed by Arthur Suzuki
parent 1f926a8772
commit fd0f1adceb
1 changed files with 2 additions and 2 deletions

View File

@ -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);