function TranslationTest::providerTestGet
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Annotation/TranslationTest.php \Drupal\Tests\Core\Annotation\TranslationTest::providerTestGet()
- 10 core/tests/Drupal/Tests/Core/Annotation/TranslationTest.php \Drupal\Tests\Core\Annotation\TranslationTest::providerTestGet()
- 11.x core/tests/Drupal/Tests/Core/Annotation/TranslationTest.php \Drupal\Tests\Core\Annotation\TranslationTest::providerTestGet()
Provides data to self::testGet().
File
-
core/
tests/ Drupal/ Tests/ Core/ Annotation/ TranslationTest.php, line 52
Class
- TranslationTest
- @coversDefaultClass \Drupal\Core\Annotation\Translation @group Annotation
Namespace
Drupal\Tests\Core\AnnotationCode
public function providerTestGet() {
$data = [];
$data[] = [
[
'value' => 'Foo',
],
'Foo',
];
$random = $this->randomMachineName();
$random_html_entity = '&' . $random;
$data[] = [
[
'value' => 'Foo @bar @baz %qux',
'arguments' => [
'@bar' => $random,
'@baz' => $random_html_entity,
'%qux' => $random_html_entity,
],
'context' => $this->randomMachineName(),
],
'Foo ' . $random . ' &' . $random . ' <em class="placeholder">&' . $random . '</em>',
];
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.