function OptGroupTest::testFlattenOptions
Same name and namespace in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Form/OptGroupTest.php \Drupal\Tests\Core\Form\OptGroupTest::testFlattenOptions()
- 10 core/tests/Drupal/Tests/Core/Form/OptGroupTest.php \Drupal\Tests\Core\Form\OptGroupTest::testFlattenOptions()
- 11.x core/tests/Drupal/Tests/Core/Form/OptGroupTest.php \Drupal\Tests\Core\Form\OptGroupTest::testFlattenOptions()
Tests the flattenOptions() method.
@dataProvider providerTestFlattenOptions
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ OptGroupTest.php, line 19
Class
- OptGroupTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Form%21OptGroup.php/class/OptGroup/9" title="Provides helpers for HTML option groups." class="local">\Drupal\Core\Form\OptGroup</a> @group Form
Namespace
Drupal\Tests\Core\FormCode
public function testFlattenOptions($options) {
$this->assertSame([
'foo' => 'foo',
], OptGroup::flattenOptions($options));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.