function PluralTranslationTest::providerTestMissingData

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

File

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

Class

PluralTranslationTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Annotation%21PluralTranslation.php/class/PluralTranslation/9" title="Defines an annotation object for strings that require plural forms." class="local">\Drupal\Core\Annotation\PluralTranslation</a> @group Annotation

Namespace

Drupal\Tests\Core\Annotation

Code

public function providerTestMissingData() {
    $data = [];
    $data['all-missing'] = [
        [],
    ];
    $data['singular-missing'] = [
        [
            'plural' => 'muh',
        ],
    ];
    $data['plural-missing'] = [
        [
            'singular' => 'muh',
        ],
    ];
    return $data;
}

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