fix unmocked warning
This commit is contained in:
parent
5fd30d8d84
commit
7913059097
1 changed files with 1 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ my $templateId = 'FILE_IMAGE_TEMPLATE___';
|
|||
my $templateMock = Test::MockObject->new({});
|
||||
$templateMock->set_isa('WebGUI::Asset::Template');
|
||||
$templateMock->set_always('getId', $templateId);
|
||||
$templateMock->set_true('prepare');
|
||||
my $templateVars;
|
||||
$templateMock->mock('process', sub { $templateVars = $_[1]; } );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue