add calls to clear_syspref_cache()
temporary until mutator for sysprefs created Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
29995accf1
commit
45214cb1d5
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,7 @@ sub startup_50_init_nozebra : Test( startup => 3 ) {
|
||||||
my $dbh = C4::Context->dbh;
|
my $dbh = C4::Context->dbh;
|
||||||
$dbh->do("UPDATE systempreferences SET value=1 WHERE variable='NoZebra'");
|
$dbh->do("UPDATE systempreferences SET value=1 WHERE variable='NoZebra'");
|
||||||
$dbh->do("UPDATE systempreferences SET value=0 WHERE variable in ('QueryFuzzy','QueryWeightFields','QueryStemming')");
|
$dbh->do("UPDATE systempreferences SET value=0 WHERE variable in ('QueryFuzzy','QueryWeightFields','QueryStemming')");
|
||||||
|
C4::Context->clear_syspref_cache();
|
||||||
$using_nozebra = C4::Context->preference('NoZebra');
|
$using_nozebra = C4::Context->preference('NoZebra');
|
||||||
ok($using_nozebra, "switched to NoZebra");
|
ok($using_nozebra, "switched to NoZebra");
|
||||||
|
|
||||||
|
@ -218,6 +219,7 @@ sub shutdown_50_init_nozebra : Test( shutdown => 3 ) {
|
||||||
my $dbh = C4::Context->dbh;
|
my $dbh = C4::Context->dbh;
|
||||||
$dbh->do("UPDATE systempreferences SET value=0 WHERE variable='NoZebra'");
|
$dbh->do("UPDATE systempreferences SET value=0 WHERE variable='NoZebra'");
|
||||||
$dbh->do("UPDATE systempreferences SET value=1 WHERE variable in ('QueryFuzzy','QueryWeightFields','QueryStemming')");
|
$dbh->do("UPDATE systempreferences SET value=1 WHERE variable in ('QueryFuzzy','QueryWeightFields','QueryStemming')");
|
||||||
|
C4::Context->clear_syspref_cache();
|
||||||
$using_nozebra = C4::Context->preference('NoZebra');
|
$using_nozebra = C4::Context->preference('NoZebra');
|
||||||
ok(!$using_nozebra, "switched to Zebra");
|
ok(!$using_nozebra, "switched to Zebra");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue