You are here

public function FormFieldTest::testGetName in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dom-crawler/Tests/Field/FormFieldTest.php \Symfony\Component\DomCrawler\Tests\Field\FormFieldTest::testGetName()

File

vendor/symfony/dom-crawler/Tests/Field/FormFieldTest.php, line 18

Class

FormFieldTest

Namespace

Symfony\Component\DomCrawler\Tests\Field

Code

public function testGetName() {
  $node = $this
    ->createNode('input', '', array(
    'type' => 'text',
    'name' => 'name',
    'value' => 'value',
  ));
  $field = new InputFormField($node);
  $this
    ->assertEquals('name', $field
    ->getName(), '->getName() returns the name of the field');
}