public testContextNotModifiedIfHostnameIsSet ( ) |
public function testContextNotModifiedIfHostnameIsSet()
{
$routes = new RouteCollection();
$routes->add('contao_index', new Route('/'));
$context = new RequestContext();
$context->setHost('contao.org');
$context->setScheme('https');
$generator = new UrlGenerator(new ParentUrlGenerator($routes, $context), $this->mockContaoFramework(), false);
$this->assertEquals('https://contao.org/', $generator->generate('index', ['_domain' => 'contao.org'], UrlGeneratorInterface::ABSOLUTE_URL));
}