Browse Source

Skip test if de_DE is not available.

Refs #9335
Mark Story 9 years ago
parent
commit
8694e6b680
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/TestCase/Utility/HashTest.php

+ 2 - 2
tests/TestCase/Utility/HashTest.php

@@ -1687,8 +1687,8 @@ class HashTest extends TestCase
         // get the current locale
         $oldLocale = setlocale(LC_COLLATE, '0');
 
-        // the de_DE.utf8 locale must be installed on the system where the test is performed
-        setlocale(LC_COLLATE, 'de_DE.utf8');
+        $updated = setlocale(LC_COLLATE, 'de_DE.utf8');
+        $this->skipIf($updated === false, 'Could not set locale to de_DE.utf8, skipping test.');
 
         $items = [
             ['Item' => ['entry' => 'Übergabe']],