You are here

public function PluralTranslationTest::testMissingData in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php \Drupal\Tests\Core\Annotation\PluralTranslationTest::testMissingData()
  2. 10 core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php \Drupal\Tests\Core\Annotation\PluralTranslationTest::testMissingData()

@dataProvider providerTestMissingData

File

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

Class

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

Namespace

Drupal\Tests\Core\Annotation

Code

public function testMissingData($data) {
  $this
    ->expectException(\InvalidArgumentException::class);
  new PluralTranslation($data);
}