Fix cleanup of Inbox messages for users. Provide a method for cleaning up Admin's messages.

This commit is contained in:
Colin Kuskie 2010-06-09 17:23:42 -07:00
parent 8edcab37a6
commit 53721581a1
3 changed files with 24 additions and 3 deletions

View file

@ -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');