You are here

public function CrawlerTest::testBaseTagWithForm in Zircon Profile 8

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

@dataProvider getBaseTagWithFormData

File

vendor/symfony/dom-crawler/Tests/CrawlerTest.php, line 976

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testBaseTagWithForm($baseValue, $actionValue, $expectedUri, $currentUri = null, $description = null) {
  $crawler = new Crawler('<html><base href="' . $baseValue . '"><form method="post" action="' . $actionValue . '"><button type="submit" name="submit"/></form></html>', $currentUri);
  $this
    ->assertEquals($expectedUri, $crawler
    ->filterXPath('//button')
    ->form()
    ->getUri(), $description);
}