public function HtmlTest::providerTestHtmlGetUniqueIdWithAjaxIds in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::providerTestHtmlGetUniqueIdWithAjaxIds()
Provides test data for testHtmlGetId().
Return value
array Test data.
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ HtmlTest.php, line 179
Class
Namespace
Drupal\Tests\Component\UtilityCode
public function providerTestHtmlGetUniqueIdWithAjaxIds() {
return [
[
'test-unique-id1--',
'test-unique-id1',
],
// Note, we truncate two hyphens at the end.
// @see \Drupal\Component\Utility\Html::getId()
[
'test-unique-id1---',
'test-unique-id1--',
],
[
'test-unique-id2--',
'test-unique-id2',
],
];
}