public function FormElementTest::testGetMaxDelta in Modules weight 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/Utility/FormElementTest.php \Drupal\Tests\modules_weight\Unit\Utility\FormElementTest::testGetMaxDelta()
Tests the max delta with FormElement::getMaxDelta().
@covers ::getMaxDelta @dataProvider providerGetMaxDelta
Parameters
int $expected: The expected result from calling the function.
int $weight: The element weight to run through FormElement::getMaxDelta().
File
- tests/
src/ Unit/ Utility/ FormElementTest.php, line 27
Class
- FormElementTest
- Tests the FormElement class methods.
Namespace
Drupal\Tests\modules_weight\Unit\UtilityCode
public function testGetMaxDelta($expected, $weight) {
$this
->assertEquals($expected, FormElement::getMaxDelta($weight));
}