diff core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
line wrap: on
line diff
--- a/core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php	Thu May 09 15:33:08 2019 +0100
@@ -2,6 +2,7 @@
 
 namespace Drupal\Tests\locale\Functional;
 
+use Drupal\Component\Gettext\PoItem;
 use Drupal\Core\Language\LanguageInterface;
 use Drupal\Tests\BrowserTestBase;
 use Drupal\Component\Render\FormattableMarkup;
@@ -51,7 +52,7 @@
         $source_strings[$string->source] = $string->context;
       }
 
-      $etx = LOCALE_PLURAL_DELIMITER;
+      $etx = PoItem::DELIMITER;
       // List of all strings that should be in the file.
       $test_strings = [
         'Standard Call t' => '',
@@ -85,6 +86,8 @@
         "Context Unquoted plural{$etx}Context Unquoted @count plural" => 'Context string unquoted',
         "Context Single Quoted plural{$etx}Context Single Quoted @count plural" => 'Context string single quoted',
         "Context Double Quoted plural{$etx}Context Double Quoted @count plural" => 'Context string double quoted',
+
+        "No count argument plural - singular{$etx}No count argument plural - plural" => '',
       ];
 
       // Assert that all strings were found properly.