public function CrawlerTest::testBaseTagWithForm in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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
Namespace
Symfony\Component\DomCrawler\TestsCode
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);
}