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.
foreach ($test_strings as $str =>
$context) { $args =
['%source' =>
$str, '%context' =>
$context];
// Make sure that the string was found in the file.
$this->
assertTrue(isset($source_strings[$str]),
new FormattableMarkup('Found source string: %source',
$args));
// Make sure that the proper context was matched.
$this->
assertArrayHasKey($str,
$source_strings);
$this->
assertSame($context,
$source_strings[$str]);
} $this->
assertSameSize($test_strings,
$source_strings, 'Found correct number of source strings.'
);
} } /**
* Assert translations JS is added before drupal.js, because it depends on it.
*/