diff --git a/core/modules/filter/lib/Drupal/filter/Tests/FilterHtmlImageSecureTest.php b/core/modules/filter/lib/Drupal/filter/Tests/FilterHtmlImageSecureTest.php index 6c2d7d2..c3c393d 100644 --- a/core/modules/filter/lib/Drupal/filter/Tests/FilterHtmlImageSecureTest.php +++ b/core/modules/filter/lib/Drupal/filter/Tests/FilterHtmlImageSecureTest.php @@ -98,7 +98,7 @@ function testImageSource() { $images = array( $http_base_url . '/' . $druplicon => base_path() . $druplicon, // Test a url that includes the port. - str_replace(base_path(), ':80' . base_path(), $http_base_url) . '/' . $druplicon => base_path() . $druplicon, + str_replace(base_path(), ':' . $this->container->get('request')->getHttpPort() . base_path(), $http_base_url) . '/' . $druplicon => base_path() . $druplicon, $https_base_url . '/' . $druplicon => base_path() . $druplicon, base_path() . $druplicon => base_path() . $druplicon, $files_path . '/' . $test_image => $files_path . '/' . $test_image,