Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialUnitField.php
Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | final class DifferentialUnitField | ||||
} | } | ||||
public function getWarningsForDetailView() { | public function getWarningsForDetailView() { | ||||
$status = $this->getObject()->getActiveDiff()->getUnitStatus(); | $status = $this->getObject()->getActiveDiff()->getUnitStatus(); | ||||
$warnings = array(); | $warnings = array(); | ||||
if ($status < DifferentialUnitStatus::UNIT_WARN) { | if ($status < DifferentialUnitStatus::UNIT_WARN) { | ||||
// Don't show any warnings. | // Don't show any warnings. | ||||
} else if ($status == DifferentialUnitStatus::UNIT_AUTO_SKIP) { | |||||
// Don't show any warnings. | |||||
} else if ($status == DifferentialUnitStatus::UNIT_POSTPONED) { | } else if ($status == DifferentialUnitStatus::UNIT_POSTPONED) { | ||||
$warnings[] = pht( | $warnings[] = pht( | ||||
'Background tests have not finished executing on these changes.'); | 'Background tests have not finished executing on these changes.'); | ||||
} else if ($status == DifferentialUnitStatus::UNIT_SKIP) { | } else if ($status == DifferentialUnitStatus::UNIT_SKIP) { | ||||
$warnings[] = pht( | $warnings[] = pht( | ||||
'Unit tests were skipped when generating these changes.'); | 'Unit tests were skipped when generating these changes.'); | ||||
} else { | } else { | ||||
$warnings[] = pht('These changes have unit test problems.'); | $warnings[] = pht('These changes have unit test problems.'); | ||||
} | } | ||||
return $warnings; | return $warnings; | ||||
} | } | ||||
} | } |