You are here

public function FormTest::testFormFieldRegistryHasReturnsTrueWhenTheFQNExists in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dom-crawler/Tests/FormTest.php \Symfony\Component\DomCrawler\Tests\FormTest::testFormFieldRegistryHasReturnsTrueWhenTheFQNExists()

File

vendor/symfony/dom-crawler/Tests/FormTest.php, line 738

Class

FormTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testFormFieldRegistryHasReturnsTrueWhenTheFQNExists() {
  $registry = new FormFieldRegistry();
  $registry
    ->add($this
    ->getFormFieldMock('foo[bar]'));
  $this
    ->assertTrue($registry
    ->has('foo'));
  $this
    ->assertTrue($registry
    ->has('foo[bar]'));
  $this
    ->assertFalse($registry
    ->has('bar'));
  $this
    ->assertFalse($registry
    ->has('foo[foo]'));
}