mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-10 09:52:33 +01:00
Fix regression
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user