function OptGroupTest::testFlattenOptions
Same name and namespace in other branches
- 11.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()
- 9 core/tests/Drupal/Tests/Core/Form/OptGroupTest.php \Drupal\Tests\Core\Form\OptGroupTest::testFlattenOptions()
- 8.9.x core/tests/Drupal/Tests/Core/Form/OptGroupTest.php \Drupal\Tests\Core\Form\OptGroupTest::testFlattenOptions()
Tests the flattenOptions() method.
Attributes
#[DataProvider('providerTestFlattenOptions')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ OptGroupTest.php, line 23
Class
Namespace
Drupal\Tests\Core\FormCode
public function testFlattenOptions($options) : void {
$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.