Fixed: Removed deprecated function
This commit is contained in:
parent
48818ed2fd
commit
c0b5b9f00b
@ -162,37 +162,13 @@ class ContratTest extends PHPUnit_Framework_TestCase
|
|||||||
return $localobject;
|
return $localobject;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* testContratValid
|
|
||||||
*
|
|
||||||
* @param Contrat $localobject Contract
|
|
||||||
* @return int
|
|
||||||
*
|
|
||||||
* @depends testContratFetch
|
|
||||||
* The depends says test is run only if previous is ok
|
|
||||||
*/
|
|
||||||
public function testContratValid($localobject)
|
|
||||||
{
|
|
||||||
global $conf,$user,$langs,$db;
|
|
||||||
$conf=$this->savconf;
|
|
||||||
$user=$this->savuser;
|
|
||||||
$langs=$this->savlangs;
|
|
||||||
$db=$this->savdb;
|
|
||||||
|
|
||||||
$result=$localobject->update_statut($user);
|
|
||||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
|
||||||
|
|
||||||
$this->assertLessThan($result, 0);
|
|
||||||
return $localobject;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* testContratValid
|
* testContratOther
|
||||||
*
|
*
|
||||||
* @param Object $localobject Object contract
|
* @param Object $localobject Object contract
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @depends testContratValid
|
* @depends testContratFetch
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
public function testContratOther($localobject)
|
public function testContratOther($localobject)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user