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 <eldy@destailleur.fr>
This commit is contained in:
MDW 2024-03-03 15:59:08 +01:00 committed by GitHub
parent da3a24c3f3
commit 71bb3a1275
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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));