You are here

public function PluralTranslationTest::providerTestMissingData in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php \Drupal\Tests\Core\Annotation\PluralTranslationTest::providerTestMissingData()
  2. 9 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 \Drupal\Core\Annotation\PluralTranslation @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;
}