Issue #2558191 by sdstyles: Remove usage of deprecated UrlGeneratorInterface::generateFromPath() in WebTestBase::drupalHead()

8.0.x
Alex Pott 2015-09-09 14:40:33 +01:00
parent 9b8dddd5a3
commit a2059f6277
1 changed files with 1 additions and 1 deletions

View File

@ -2223,7 +2223,7 @@ abstract class WebTestBase extends TestBase {
*/
protected function drupalHead($path, array $options = array(), array $headers = array()) {
$options['absolute'] = TRUE;
$url = $this->container->get('url_generator')->generateFromPath($path, $options);
$url = $this->buildUrl($path, $options);
$out = $this->curlExec(array(CURLOPT_NOBODY => TRUE, CURLOPT_URL => $url, CURLOPT_HTTPHEADER => $headers));
// Ensure that any changes to variables in the other thread are picked up.
$this->refreshVariables();