];
return $test_parameters;
} /**
* @dataProvider providerTestFilterByDefinedOptions
* @covers ::filterByDefinedOptions
*/
public function testFilterByDefinedOptions($storage,
$options,
$expected_storage) { $this->testHelperPlugin->
setDefinedOptions($options);
$this->testHelperPlugin->
filterByDefinedOptions($storage);
$this->
assertEquals($expected_storage,
$storage);
} public function providerTestFilterByDefinedOptions() { $data =
[];
// A simple defined option.
$values_1 =
['key1' => 'value1'
];
$options_1 =
['key1' =>
['default' => ''
]];
$data[] =
[$values_1,
$options_1,
$values_1];