From: Jon goldberg Date: Sun, 19 Jul 2015 17:44:41 +0000 (-0400) Subject: CRM-13283 - Status Page - changes to reflect that we now always store the severity... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d07e781df76b954072fc209c912107ba58b75ea2;p=civicrm-core.git CRM-13283 - Status Page - changes to reflect that we now always store the severity in the db as an integer --- diff --git a/CRM/Utils/Check.php b/CRM/Utils/Check.php index cd2e18d607..d649ae756f 100644 --- a/CRM/Utils/Check.php +++ b/CRM/Utils/Check.php @@ -239,7 +239,7 @@ class CRM_Utils_Check { } if ($spid) { // If so, compare severity to StatusPreference->severity. - $severity = self::severityMap($message->getSeverity()); + $severity = $message->getSeverity(); if ($severity <= $statusPreference['values'][$spid]['ignore_severity']) { // A hush or a snooze has been set. Find out which. if (isset($statusPreference['values'][$spid]['hush_until'])) { diff --git a/tests/phpunit/api/v3/SystemCheckTest.php b/tests/phpunit/api/v3/SystemCheckTest.php index 08df7a1778..57202f2560 100644 --- a/tests/phpunit/api/v3/SystemCheckTest.php +++ b/tests/phpunit/api/v3/SystemCheckTest.php @@ -63,7 +63,7 @@ class api_v3_SystemCheckTest extends CiviUnitTestCase { break; } } - $this->assertEquals($testedCheck['severity'], 'warning', ' in line ' . __LINE__); + $this->assertEquals($testedCheck['severity'], '3', ' in line ' . __LINE__); } /**