function PluralTranslationTest::testMissingData
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php \Drupal\Tests\Core\Annotation\PluralTranslationTest::testMissingData()
- 10 core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php \Drupal\Tests\Core\Annotation\PluralTranslationTest::testMissingData()
- 9 core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php \Drupal\Tests\Core\Annotation\PluralTranslationTest::testMissingData()
- 8.9.x core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php \Drupal\Tests\Core\Annotation\PluralTranslationTest::testMissingData()
Tests missing data.
Attributes
#[DataProvider('providerTestMissingData')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Annotation/ PluralTranslationTest.php, line 59
Class
Namespace
Drupal\Tests\Core\AnnotationCode
public function testMissingData($data) : void {
$this->expectException(\InvalidArgumentException::class);
new PluralTranslation($data);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.