public function HtmlTest::providerTestHtmlGetUniqueIdWithAjaxIds in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 175 - Contains \Drupal\Tests\Component\Utility\HtmlTest.
Class
Namespace
Drupal\Tests\Component\UtilityCode
public function providerTestHtmlGetUniqueIdWithAjaxIds() {
return array(
array(
'test-unique-id1--',
'test-unique-id1',
),
// Note, we truncate two hyphens at the end.
// @see \Drupal\Component\Utility\Html::getId()
array(
'test-unique-id1---',
'test-unique-id1--',
),
array(
'test-unique-id2--',
'test-unique-id2',
),
);
}