function PluralTranslationTest::providerTestGet

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

Provides data to self::testGet().

File

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

Class

PluralTranslationTest
@coversDefaultClass \Drupal\Core\Annotation\PluralTranslation @group Annotation

Namespace

Drupal\Tests\Core\Annotation

Code

public function providerTestGet() {
    $data = [];
    $data[] = [
        [
            'singular' => $this->randomMachineName(),
            'plural' => $this->randomMachineName(),
            'context' => $this->randomMachineName(),
        ],
    ];
    $data[] = [
        [
            'singular' => $this->randomMachineName(),
            'plural' => $this->randomMachineName(),
        ],
    ];
    return $data;
}

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