protected function DataCollectorTableTest::fillInputs in Charts 5.0.x
Same name and namespace in other branches
- 8.4 tests/src/FunctionalJavascript/DataCollectorTableTest.php \Drupal\Tests\charts\FunctionalJavascript\DataCollectorTableTest::fillInputs()
Fill inputs.
Parameters
array $inputs: Input to fill.
Return value
\Behat\Mink\Element\NodeElement[] The node element.
1 call to DataCollectorTableTest::fillInputs()
- DataCollectorTableTest::testDataCollectorTable in tests/
src/ FunctionalJavascript/ DataCollectorTableTest.php - Tests the data collector table.
File
- tests/
src/ FunctionalJavascript/ DataCollectorTableTest.php, line 240
Class
- DataCollectorTableTest
- Tests the data collector table element.
Namespace
Drupal\Tests\charts\FunctionalJavascriptCode
protected function fillInputs(array $inputs) {
/** @var \Behat\Mink\Element\NodeElement[] $inputs */
foreach ($inputs as $input) {
$value = rand(0, count($inputs));
$input
->setValue($value);
}
return $inputs;
}