You are here

public function FormTest::testGetUriWithOnlyQueryString in Zircon Profile 8.0

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

File

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

Class

FormTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testGetUriWithOnlyQueryString() {
  $form = $this
    ->createForm('<form action="?get=param"><input type="submit" /></form>', null, 'http://localhost/foo/bar');
  $this
    ->assertEquals('http://localhost/foo/bar?get=param', $form
    ->getUri(), '->getUri() returns absolute URIs only if the host has been defined in the constructor');
}