public function FormElementHelperTest::testGetElementByName in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Form/FormElementHelperTest.php \Drupal\Tests\Core\Form\FormElementHelperTest::testGetElementByName()
Tests the getElementByName() method.
@covers ::getElementByName
@dataProvider getElementByNameProvider
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ FormElementHelperTest.php, line 30 - Contains \Drupal\Tests\Core\Form\FormElementHelperTest.
Class
- FormElementHelperTest
- Tests the form element helper.
Namespace
Drupal\Tests\Core\FormCode
public function testGetElementByName($name, $form, $expected) {
$this
->assertSame($expected, FormElementHelper::getElementByName($name, $form));
}