You are here

public function PluralTranslationTest::testGet 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::testGet()
  2. 9 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 19

Class

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

Namespace

Drupal\Tests\Core\Annotation

Code

public function testGet(array $values) {
  $annotation = new PluralTranslation($values);
  $default_values = [
    'context' => NULL,
  ];
  $this
    ->assertEquals($values + $default_values, $annotation
    ->get());
}