function PluralTranslationTest::providerTestMissingData

Same name and namespace in other branches
  1. 11.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. 9 core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php \Drupal\Tests\Core\Annotation\PluralTranslationTest::providerTestMissingData()
  4. 8.9.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 65

Class

PluralTranslationTest
Tests Drupal\Core\Annotation\PluralTranslation.

Namespace

Drupal\Tests\Core\Annotation

Code

public static function providerTestMissingData() : array {
  $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.