function MultipleValueWidgetTest::getItemValuesInDomOrder
Returns the values of the widget items as they are ordered in the DOM.
This matches what the user sees.
Return value
string[] The item values.
2 calls to MultipleValueWidgetTest::getItemValuesInDomOrder()
- MultipleValueWidgetTest::testFieldMultipleValueWidgetRemoveKeepsOrderWithTabledrag in core/
modules/ field/ tests/ src/ FunctionalJavascript/ MultipleValueWidgetTest.php - Tests that removing an item keeps the order set through drag and drop.
- MultipleValueWidgetTest::testFieldMultipleValueWidgetRemoveKeepsWeightOrderWhenRowWeightsAreShown in core/
modules/ field/ tests/ src/ FunctionalJavascript/ MultipleValueWidgetTest.php - Tests that removing an item keeps the order set through the weight selects.
File
-
core/
modules/ field/ tests/ src/ FunctionalJavascript/ MultipleValueWidgetTest.php, line 293
Class
- MultipleValueWidgetTest
- Tests widget form for a multiple value field.
Namespace
Drupal\Tests\field\FunctionalJavascriptCode
protected function getItemValuesInDomOrder() : array {
$values = [];
foreach ($this->getSession()
->getPage()
->findAll('css', 'tr.draggable input[name$="[value]"]') as $input) {
$values[] = $input->getValue();
}
return $values;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.