Fix phpunit
This commit is contained in:
parent
1e95802a41
commit
756b9ca07f
@ -332,33 +332,6 @@ class TicketTest extends PHPUnit_Framework_TestCase
|
||||
return $localobject;
|
||||
}
|
||||
|
||||
/**
|
||||
* testTicketcreateTicketLog
|
||||
*
|
||||
* @param Ticket $localobject Ticket
|
||||
* @return int
|
||||
*
|
||||
* @depends testTicketFetch
|
||||
* The depends says test is run only if previous is ok
|
||||
*/
|
||||
public function testTicketcreateTicketLog($localobject)
|
||||
{
|
||||
global $conf,$user,$langs,$db;
|
||||
$conf=$this->savconf;
|
||||
$user=$this->savuser;
|
||||
$langs=$this->savlangs;
|
||||
$db=$this->savdb;
|
||||
|
||||
|
||||
$message = 'Test ticket log';
|
||||
$noemail = 1;
|
||||
$result=$localobject->createTicketLog($user, $message, $noemail);
|
||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||
|
||||
$this->assertGreaterThan(0, $result);
|
||||
return $localobject;
|
||||
}
|
||||
|
||||
/**
|
||||
* testTicketclose
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user