forked from Wavyzz/dolibarr
Fix intervention update sql error (#33916)
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user