Revert "Bug 31593: Remove Test::DBIx::Class from Context.t"
This reverts commit 9f441c3976.
This commit is contained in:
parent
bcc225b023
commit
3a7ed07546
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue