2
0
forked from Wavyzz/dolibarr

Fix intervention update sql error (#33916)

This commit is contained in:
Francis Appels
2025-04-18 20:01:58 +02:00
committed by GitHub
parent c55138f314
commit 55530fa588
2 changed files with 24 additions and 1 deletions

View File

@@ -104,6 +104,29 @@ class FichinterTest extends CommonClassTest
return $localobject;
}
/**
* testFichinterUpdate
*
* Check that a intervention object can be updated.
*
* @param Object $localobject An existing intervention object to update.
* @return Intervention object with data fetched and description changed
*
* @depends testFichinterFetch
*/
public function testFichinterUpdate($localobject)
{
global $user;
$localobject->description = "foobar";
$result = $localobject->update($user);
print __METHOD__." id=".$localobject->id." result=".$result."\n";
$this->assertLessThan($result, 0, $localobject->errorsToString());
return $localobject;
}
/**
* testFichinterValid
*