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:
parent
da3a24c3f3
commit
71bb3a1275
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue