function OptGroupTest::testFlattenOptions

Tests the flattenOptions() method.

@dataProvider providerTestFlattenOptions

File

core/tests/Drupal/Tests/Core/Form/OptGroupTest.php, line 21

Class

OptGroupTest
@coversDefaultClass \Drupal\Core\Form\OptGroup[[api-linebreak]] @group Form

Namespace

Drupal\Tests\Core\Form

Code

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.