Fix regression

This commit is contained in:
Laurent Destailleur
2023-12-27 13:09:25 +01:00
parent e2c0a76c11
commit 61c5c6f88d
3 changed files with 28 additions and 1 deletions

View File

@@ -1781,4 +1781,20 @@ class FunctionsLibTest extends PHPUnit\Framework\TestCase
return true;
}
/**
* testFetchObjectByElement
*
* @return boolean;
*/
public function testFetchObjectByElement()
{
global $conf, $langs;
$result = fetchObjectByElement(0, 'product');
$this->assertTrue(is_object($result));
return true;
}
}