You are here

public function OptGroupTest::testFlattenOptions in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 24
Contains \Drupal\Tests\Core\Form\OptGroupTest.

Class

OptGroupTest
@coversDefaultClass \Drupal\Core\Form\OptGroup @group Form

Namespace

Drupal\Tests\Core\Form

Code

public function testFlattenOptions($options) {
  $this
    ->assertSame(array(
    'foo' => 'foo',
  ), OptGroup::flattenOptions($options));
}