Fix cleanup of Inbox messages for users. Provide a method for cleaning up Admin's messages.
This commit is contained in:
parent
8edcab37a6
commit
53721581a1
3 changed files with 24 additions and 3 deletions
|
|
@ -267,6 +267,7 @@ $templateMock->mock('process', sub { push @templateVars, clone $_[1]; } );
|
|||
$session->setting->set('shopReceiptEmailTemplateId', $templateId);
|
||||
|
||||
{
|
||||
WebGUI::Test->addToCleanup(sub { WebGUI::Test->cleanupAdminInbox(); });
|
||||
WebGUI::Test->mockAssetId($templateId, $templateMock);
|
||||
$trans->sendNotifications;
|
||||
is(@templateVars, 2, '... called template->process twice');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue