Change tests to use the automatic backup of Settings in END blocks.
This commit is contained in:
parent
6f3aae261b
commit
4e78593395
23 changed files with 13 additions and 93 deletions
|
|
@ -149,8 +149,6 @@ is($eh->canShowBasedOnIP(''), 0, 'canShowBasedOnIP: must send IP setting');
|
|||
#
|
||||
####################################################
|
||||
|
||||
my $origDebugIp = $session->setting->get('debugIp');
|
||||
my $origShowDebug = $session->setting->get('showDebug');
|
||||
|
||||
$session->setting->set('showDebug', 0);
|
||||
delete $eh->{_canShowDebug};
|
||||
|
|
@ -183,8 +181,6 @@ ok($eh->canShowDebug, 'canShowDebug: returns 1 if debugIp is set and IP address
|
|||
#
|
||||
####################################################
|
||||
|
||||
my $origShowPerf = $session->setting->get('showPerformanceIndicators');
|
||||
|
||||
$session->setting->set('showPerformanceIndicators', 0);
|
||||
is($eh->canShowPerformanceIndicators, 0, 'canShowPerformanceIndicators: returns 0 if not enabled');
|
||||
|
||||
|
|
@ -243,8 +239,4 @@ TODO: {
|
|||
}
|
||||
|
||||
END {
|
||||
$session->setting->set('debugIp', $origDebugIp);
|
||||
$session->setting->set('showDebug', $origShowDebug);
|
||||
|
||||
$session->setting->set('showPerformanceIndicators', $origShowPerf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue