Security update for Core, with self-updated composer
[yaffs-website] / web / core / tests / Drupal / Tests / Core / StringTranslation / TranslationManagerTest.php
index 2cd750bf10a416a09cac44d777e4f346205db2c9..53a92414211b77308a12bdccf12622aba0685608 100644 (file)
@@ -50,7 +50,7 @@ class TranslationManagerTest extends UnitTestCase {
   /**
    * @dataProvider providerTestFormatPlural
    */
-  public function testFormatPlural($count, $singular, $plural, array $args = [], array $options = [], $expected) {
+  public function testFormatPlural($count, $singular, $plural, array $args, array $options, $expected) {
     $langcode = empty($options['langcode']) ? 'fr' : $options['langcode'];
     $translator = $this->getMock('\Drupal\Core\StringTranslation\Translator\TranslatorInterface');
     $translator->expects($this->once())
@@ -78,7 +78,7 @@ class TranslationManagerTest extends UnitTestCase {
    *
    * @dataProvider providerTestTranslatePlaceholder
    */
-  public function testTranslatePlaceholder($string, array $args = [], $expected_string) {
+  public function testTranslatePlaceholder($string, array $args, $expected_string) {
     $actual = $this->translationManager->translate($string, $args);
     $this->assertInstanceOf(MarkupInterface::class, $actual);
     $this->assertEquals($expected_string, (string) $actual);