function FormElementHelperTest::testGetElementByName
Tests the getElementByName() method.
@covers ::getElementByName
@dataProvider getElementByNameProvider
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormElementHelperTest.php, line 27
Class
- FormElementHelperTest
- Tests the form element helper.
Namespace
Drupal\Tests\Core\FormCode
public function testGetElementByName($name, $form, $expected) : void {
$this->assertSame($expected, FormElementHelper::getElementByName($name, $form));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.