You are here

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

File

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

Class

FormTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testGetUriWithoutAction() {
  $form = $this
    ->createForm('<form><input type="submit" /></form>', null, 'http://localhost/foo/bar');
  $this
    ->assertEquals('http://localhost/foo/bar', $form
    ->getUri(), '->getUri() returns path if no action defined');
}