Back port Haarg's excellent fix for the lack
of query checking in the ErrorHandler test.
This commit is contained in:
parent
6c50ed9851
commit
afff4c4844
1 changed files with 6 additions and 5 deletions
|
|
@ -150,11 +150,12 @@ sub interceptLogging {
|
|||
my $logger = $SESSION->log->getLogger;
|
||||
$logger = Test::MockObject::Extends->new( $logger );
|
||||
|
||||
$logger->mock( 'warn', sub { $WebGUI::Test::logger_warns = $_[1]} );
|
||||
$logger->mock( 'debug', sub { $WebGUI::Test::logger_debug = $_[1]} );
|
||||
$logger->mock( 'info', sub { $WebGUI::Test::logger_info = $_[1]} );
|
||||
$logger->mock( 'error', sub { $WebGUI::Test::logger_error = $_[1]} );
|
||||
$logger->mock( 'isDebug', sub { return 1 } );
|
||||
$logger->mock( 'warn', sub { $WebGUI::Test::logger_warns = $_[1]} );
|
||||
$logger->mock( 'debug', sub { $WebGUI::Test::logger_debug = $_[1]} );
|
||||
$logger->mock( 'info', sub { $WebGUI::Test::logger_info = $_[1]} );
|
||||
$logger->mock( 'error', sub { $WebGUI::Test::logger_error = $_[1]} );
|
||||
$logger->mock( 'isDebug', sub { return 1 } );
|
||||
$logger->mock( 'is_debug', sub { return 1 } );
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue