Commit 34a935f7 authored by Sam152's avatar Sam152 Committed by Sam152
Browse files

Issue #2666598 by Sam152: Fix failing test in HEAD

parent 8e037eef
...@@ -93,7 +93,8 @@ class Colorbox extends ImageFieldTestBase { ...@@ -93,7 +93,8 @@ class Colorbox extends ImageFieldTestBase {
*/ */
public function assertScript($script_url, $exists = TRUE) { public function assertScript($script_url, $exists = TRUE) {
$version = \Drupal::VERSION; $version = \Drupal::VERSION;
$this->{$exists ? 'assertRaw' : 'assertNoRaw'}("<script src=\"{$GLOBALS['base_url']}/$script_url?v=$version\"></script>"); $base_path = \Drupal::request()->getBasePath();
$this->{$exists ? 'assertRaw' : 'assertNoRaw'}("<script src=\"$base_path/$script_url?v=$version\"></script>");
} }
} }
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