Add unit test
This commit is contained in:
parent
8802bd4a91
commit
e172e82f0c
@ -257,15 +257,10 @@ class UserGroupTest extends PHPUnit\Framework\TestCase
|
|||||||
$langs=$this->savlangs;
|
$langs=$this->savlangs;
|
||||||
$db=$this->savdb;
|
$db=$this->savdb;
|
||||||
|
|
||||||
/*$result=$localobject->setstatus(0);
|
$result = $localobject->generateDocument('templatenamethadoesnotexist', $langs);
|
||||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
print __METHOD__." result=".$result."\n";
|
||||||
$this->assertLessThan($result, 0);
|
$this->assertEquals(-1, $result, 'Calling generateDocument with a not existing template should return 0');
|
||||||
*/
|
|
||||||
|
|
||||||
/*$localobject->info($localobject->id);
|
|
||||||
print __METHOD__." localobject->date_creation=".$localobject->date_creation."\n";
|
|
||||||
$this->assertNotEquals($localobject->date_creation, '');
|
|
||||||
*/
|
|
||||||
return $localobject->id;
|
return $localobject->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user