function PluralTranslationTest::testGet
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php \Drupal\Tests\Core\Annotation\PluralTranslationTest::testGet()
- 8.9.x core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php \Drupal\Tests\Core\Annotation\PluralTranslationTest::testGet()
- 10 core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php \Drupal\Tests\Core\Annotation\PluralTranslationTest::testGet()
@covers ::get
@dataProvider providerTestGet
File
-
core/
tests/ Drupal/ Tests/ Core/ Annotation/ PluralTranslationTest.php, line 22
Class
- PluralTranslationTest
- @coversDefaultClass \Drupal\Core\Annotation\PluralTranslation @group Annotation
Namespace
Drupal\Tests\Core\AnnotationCode
public function testGet(array $values) : void {
$annotation = new PluralTranslation($values);
$default_values = [
'context' => NULL,
];
$this->assertEquals($values + $default_values, $annotation->get());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.