CPM error in test harness
Content
Hi All,
I have written a cpm script for incident create and update.While testing it, in setup function of test harness i am fetching an existing incident id. But it is giving the error 'Invalid ID:No such incident'.
Is this the proper way to test or do need to create test object in the setup function?
Thanks
Puneet
Code Snippet
public static function setup() { $incidentOne = RNCPHP\Incident::fetch(218); $incidentOne->save(); self::$incidentOneId = $incidentOne->ID; return; }
0