Commit a2059f62 authored by alexpott's avatar alexpott

Issue #2558191 by sdstyles: Remove usage of deprecated...

Issue #2558191 by sdstyles: Remove usage of deprecated UrlGeneratorInterface::generateFromPath() in  WebTestBase::drupalHead()
parent 9b8dddd5
......@@ -2223,7 +2223,7 @@ protected function checkForMetaRefresh() {
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.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment