function TranslationTest::testGet
@covers ::get
      
    
@dataProvider providerTestGet
File
- 
              core/tests/ Drupal/ Tests/ Core/ Annotation/ TranslationTest.php, line 34 
Class
- TranslationTest
- @coversDefaultClass \Drupal\Core\Annotation\Translation[[api-linebreak]] @group Annotation
Namespace
Drupal\Tests\Core\AnnotationCode
public function testGet(array $values, $expected) {
  $container = new ContainerBuilder();
  $container->set('string_translation', $this->translationManager);
  \Drupal::setContainer($container);
  $annotation = new Translation($values);
  $this->assertSame($expected, (string) $annotation->get());
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
