function PluralTranslationTest::providerTestGet

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php \Drupal\Tests\Core\Annotation\PluralTranslationTest::providerTestGet()
  2. 8.9.x core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php \Drupal\Tests\Core\Annotation\PluralTranslationTest::providerTestGet()
  3. 10 core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php \Drupal\Tests\Core\Annotation\PluralTranslationTest::providerTestGet()

Provides data to
" class="local">self::testGet
().

File

core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php, line 34

Class

PluralTranslationTest
@coversDefaultClass \Drupal\Core\Annotation\PluralTranslation[[api-linebreak]] @group Annotation

Namespace

Drupal\Tests\Core\Annotation

Code

public static function providerTestGet() {
  $data = [];
  $data[] = [
    [
      'singular' => Random::machineName(),
      'plural' => Random::machineName(),
      'context' => Random::machineName(),
    ],
  ];
  $data[] = [
    [
      'singular' => Random::machineName(),
      'plural' => Random::machineName(),
    ],
  ];
  return $data;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.