CRM-13283 - Status Page - changes to reflect that we now always store the severity...
authorJon goldberg <jon@palantetech.coop>
Sun, 19 Jul 2015 17:44:41 +0000 (13:44 -0400)
committerJon goldberg <jon@palantetech.coop>
Tue, 21 Jul 2015 20:40:10 +0000 (16:40 -0400)
CRM/Utils/Check.php
tests/phpunit/api/v3/SystemCheckTest.php

index cd2e18d6079fd83203aa0d82b5f81991ec2707a0..d649ae756ff9c720fc71c6fd072b66e006820502 100644 (file)
@@ -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'])) {
index 08df7a1778e8b2032343c06cdd99cb8d8028086a..57202f256072e01b0402d7363d994a69d53de9ce 100644 (file)
@@ -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__);
   }
 
   /**