Make WebGUI::PseudoRequest work with fatals. Cookies are now mocked and
tied off inside that package. ErrorHandler uses the session request object, instead of RequestUtil.
This commit is contained in:
parent
e0ce8caf5a
commit
c90fa56507
3 changed files with 34 additions and 3 deletions
|
|
@ -2,6 +2,17 @@ package WebGUI::PseudoRequest;
|
|||
|
||||
use strict;
|
||||
|
||||
use Test::MockObject;
|
||||
|
||||
my $mocker = Test::MockObject->new();
|
||||
$mocker->fake_module(
|
||||
'Apache2::Cookie',
|
||||
new => sub { return bless {}, 'Apache2::Cookie'; },
|
||||
expires => sub { 1; },
|
||||
domain => sub { 1; },
|
||||
bake => sub { 1; },
|
||||
);
|
||||
|
||||
=head1 LEGAL
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue