You are here

public function FormTest::testTypeAttributeIsCaseInsensitive 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::testTypeAttributeIsCaseInsensitive()

File

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

Class

FormTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testTypeAttributeIsCaseInsensitive() {
  $form = $this
    ->createForm('<form method="post"><input type="IMAGE" name="example" /></form>');
  $this
    ->assertTrue($form
    ->has('example.x'), '->has() returns true if the image input was correctly turned into an x and a y fields');
  $this
    ->assertTrue($form
    ->has('example.y'), '->has() returns true if the image input was correctly turned into an x and a y fields');
}