$data =
[];
$recipients =
['admin@drupal.org', 'user@drupal.org'
];
$default_result =
[ 'module' => 'contact',
'key' => '',
'to' =>
implode(', ',
$recipients),
'langcode' => 'en',
'params' =>
[],
'from' => 'anonymous@drupal.org',
];
$results =
[];
$message =
$this->
getAnonymousMockMessage($recipients, ''
);
$sender =
$this->
getMockSender();
$result =
[ 'key' => 'page_mail',
'params' =>
[ 'contact_message' =>
$message,
'sender' =>
$sender,
'contact_form' =>
$message->
getContactForm(),
],
];
$results[] =
$result +
$default_result;
$data[] =
[$message,
$sender,
$results];