public function ChartsBaseSettingsFormTest::formProvider in Charts 8.3
Data provider for testGetChartsBaseSettingsForm().
File
- tests/
src/ Unit/ Settings/ ChartsBaseSettingsFormTest.php, line 296
Class
- ChartsBaseSettingsFormTest
- Tests the ChartsBaseSettingsForm class.
Namespace
Drupal\Tests\charts\Unit\SettingsCode
public function formProvider() {
(yield [
[],
[
'inherit_yaxis' => 1,
'secondary_yaxis' => [
'yaxis_title' => $this
->prophesize(TranslatableMarkup::class)
->reveal(),
'yaxis_min' => '',
'yaxis_max' => '',
'yaxis_prefix' => '',
'yaxis_suffix' => '',
'yaxis_decimal_count' => '',
'yaxis_labels_rotation' => 0,
],
],
[],
[],
'block',
]);
(yield [
[],
[
'colors' => [
'00FF00',
],
],
[
'title' => $this
->prophesize(TranslatableMarkup::class)
->reveal(),
],
[],
'view',
]);
(yield [
[],
[
'colors' => [
'00FF00',
'00FF00',
'00FF00',
'00FF00',
'00FF00',
'00FF00',
'00FF00',
'00FF00',
'00FF00',
'00FF00',
],
],
[],
[],
'config_form',
]);
}