From 4f9dcd0f8eec44bcda8e4cbb9b40f17aca483754 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 4 Jan 2019 17:02:03 +0100 Subject: add the patch --- 5200.patch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 5200.patch (limited to '5200.patch') diff --git a/5200.patch b/5200.patch new file mode 100644 index 0000000..7ed7d76 --- /dev/null +++ b/5200.patch @@ -0,0 +1,31 @@ +From 53de3f8e261cbc449deb5e603fe7d0f1c4c273ec Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Fri, 4 Jan 2019 16:08:52 +0100 +Subject: [PATCH] fix paths used for css/js test + +--- + tests/units/Html.php | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/units/Html.php b/tests/units/Html.php +index ee17710b31..c5d2f22068 100644 +--- a/tests/units/Html.php ++++ b/tests/units/Html.php +@@ -421,7 +421,7 @@ public function testCss() { + 'other.css', + 'other-min.css' + ]; +- $dir = str_replace(GLPI_ROOT, '', GLPI_TMP_DIR); ++ $dir = str_replace(realpath(GLPI_ROOT), '', realpath(GLPI_TMP_DIR)); + $base_expected = ''; + $base_attrs = 'media="all"'; +@@ -530,7 +530,7 @@ public function testScript() { + 'other.js', + 'other-min.js' + ]; +- $dir = str_replace(GLPI_ROOT, '', GLPI_TMP_DIR); ++ $dir = str_replace(realpath(GLPI_ROOT), '', realpath(GLPI_TMP_DIR)); + $base_expected = ''; + -- cgit