public function OptGroupTest::providerTestFlattenOptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Form/OptGroupTest.php \Drupal\Tests\Core\Form\OptGroupTest::providerTestFlattenOptions()
Provides test data for the flattenOptions() method.
Return value
array
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ OptGroupTest.php, line 33 - Contains \Drupal\Tests\Core\Form\OptGroupTest.
Class
- OptGroupTest
- @coversDefaultClass \Drupal\Core\Form\OptGroup @group Form
Namespace
Drupal\Tests\Core\FormCode
public function providerTestFlattenOptions() {
$object1 = new \stdClass();
$object1->option = array(
'foo' => 'foo',
);
$object2 = new \stdClass();
$object2->option = array(
array(
'foo' => 'foo',
),
array(
'foo' => 'foo',
),
);
$object3 = new \stdClass();
return array(
array(
array(
'foo' => 'foo',
),
),
array(
array(
array(
'foo' => 'foo',
),
),
),
array(
array(
$object1,
),
),
array(
array(
$object2,
),
),
array(
array(
$object1,
$object2,
),
),
array(
array(
'foo' => $object3,
$object1,
array(
'foo' => 'foo',
),
),
),
);
}