Revert "Bug 31593: Remove Test::DBIx::Class from Context.t"

This reverts commit 9f441c3976.
This commit is contained in:
Wainui Witika-Park 2023-03-15 13:29:39 +13:00
parent bcc225b023
commit 3a7ed07546
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,7 @@ $dbh->rollback;
ok($koha = C4::Context->new, 'C4::Context->new');
my @keys = keys %$koha;
my $width = 0;
ok( @keys, 'Expecting entries in context hash' );
if( @keys ) {
if (ok(@keys)) {
$width = (sort {$a <=> $b} map {length} @keys)[-1];
$debug and diag "widest key is $width";
}
@ -67,6 +66,7 @@ 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);