You are here

public function CrawlerTest::getBaseTagWithFormData in Zircon Profile 8.0

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

File

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

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function getBaseTagWithFormData() {
  return array(
    array(
      'https://base.com/',
      'link/',
      'https://base.com/link/',
      'https://base.com/link/',
      '<base> tag does work with a path and relative form action',
    ),
    array(
      '/basepath',
      '/registration',
      'http://domain.com/registration',
      'http://domain.com/registration',
      '<base> tag does work with a path and form action',
    ),
    array(
      '/basepath',
      '',
      'http://domain.com/registration',
      'http://domain.com/registration',
      '<base> tag does work with a path and empty form action',
    ),
    array(
      'http://base.com/',
      '/registration',
      'http://base.com/registration',
      'http://domain.com/registration',
      '<base> tag does work with a URL and form action',
    ),
    array(
      'http://base.com',
      '',
      'http://domain.com/path/form',
      'http://domain.com/path/form',
      '<base> tag does work with a URL and an empty form action',
    ),
    array(
      'http://base.com/path',
      '/registration',
      'http://base.com/registration',
      'http://domain.com/path/form',
      '<base> tag does work with a URL and form action',
    ),
  );
}