public function HtmlTest::providerTestHtmlGetUniqueIdWithAjaxIds in Drupal 9
Same name and namespace in other branches
- 8 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 181
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',
],
];
}