Project

General

Profile

Bug #58786 ยป 0001-enriched-report-mail-with-the-failed-tests.patch

Enriched Mails with more information about failed tests - Benedict Burckhart, 2014-06-17 10:30

View differences:

typo3/sysext/install/Classes/Report/EnvironmentStatusReport.php
$statusArray = array();
foreach ($reportStatusTypes as $type => $statusObjects) {
$value = count($statusObjects);
$message = '';
foreach($statusObjects as $statusObject) {
$message .= '### ' . $statusObject->getTitle() . ': ' . $statusObject->getSeverity() . CRLF;
}
if ($value > 0) {
$pathToXliff = 'LLL:EXT:install/Resources/Private/Language/Report/locallang.xlf';
// Map information type to abbreviation which is used in \TYPO3\CMS\Reports\Status class
if ($type === 'information') {
$type = 'info';
}
$message = $GLOBALS['LANG']->sL($pathToXliff . ':environment.status.message.' . $type);
$severity = constant('\TYPO3\CMS\Reports\Status::' . strtoupper($type));
$statusArray[] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
'TYPO3\\CMS\\Reports\\Status',
typo3/sysext/reports/Classes/Task/SystemStatusUpdateTask.php
foreach ($systemStatus as $statusProvider) {
foreach ($statusProvider as $status) {
if ($status->getSeverity() > \TYPO3\CMS\Reports\Status::OK) {
$systemIssues[] = (string) $status;
$issueHolder = &$systemIssues[];
$issueHolder = (string) $status;
$issueHolder .= CRLF . $status->getMessage() . CRLF . CRLF;
}
}
}
    (1-1/1)