You are here

protected function DataCollectorTableTest::fillInputs in Charts 8.4

Same name and namespace in other branches
  1. 5.0.x 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\FunctionalJavascript

Code

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;
}