You are here

public function PluralTranslatableMarkupTest::providerPluralTranslatableMarkupSerialization in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/StringTranslation/PluralTranslatableMarkupTest.php \Drupal\Tests\Core\StringTranslation\PluralTranslatableMarkupTest::providerPluralTranslatableMarkupSerialization()
  2. 10 core/tests/Drupal/Tests/Core/StringTranslation/PluralTranslatableMarkupTest.php \Drupal\Tests\Core\StringTranslation\PluralTranslatableMarkupTest::providerPluralTranslatableMarkupSerialization()

Data provider for ::testPluralTranslatableMarkupSerialization().

File

core/tests/Drupal/Tests/Core/StringTranslation/PluralTranslatableMarkupTest.php, line 37

Class

PluralTranslatableMarkupTest
Tests the TranslatableMarkup class.

Namespace

Drupal\Tests\Core\StringTranslation

Code

public function providerPluralTranslatableMarkupSerialization() {
  return [
    [
      1,
      'singular 1',
    ],
    [
      2,
      'plural 2',
    ],
  ];
}