You are here

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

File

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

Class

FormTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testGetUriWithAnchor() {
  $form = $this
    ->createForm('<form action="#foo"><input type="submit" /></form>', null, 'http://example.com/id/123');
  $this
    ->assertEquals('http://example.com/id/123#foo', $form
    ->getUri());
}