From 71bb3a1275d9d04953dd7b44bc9465982e4e4292 Mon Sep 17 00:00:00 2001 From: MDW Date: Sun, 3 Mar 2024 15:59:08 +0100 Subject: [PATCH] Fix: Use accessible path for CategorieTest (#28600) * Fix: Use accessible path for CategorieTest # Fix: Use accessible path for CategorieTest The test was using '/' (root of the filesystem) which was outside the open_basedir paths. Modified the path to the medias directory to allow the test to pass with open_basedir restriction in effect. * Update CategorieTest.php --------- Co-authored-by: Laurent Destailleur --- test/phpunit/CategorieTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/phpunit/CategorieTest.php b/test/phpunit/CategorieTest.php index b57932bebde..cef67a66b70 100644 --- a/test/phpunit/CategorieTest.php +++ b/test/phpunit/CategorieTest.php @@ -214,7 +214,7 @@ class CategorieTest extends CommonClassTest $this->assertLessThan($result, 0); */ - $retarray = $localobject->liste_photos('/'); + $retarray = $localobject->liste_photos(DOL_DATA_ROOT."/categorie"); print __METHOD__." retarray size=".count($retarray)."\n"; $this->assertTrue(is_array($retarray));