Ejemplo n.º 1
0
    /**
     * @depends	testAdherentOther
     * The depends says test is run only if previous is ok
     */
    public function testAdherentDelete($id)
    {
    	global $conf,$user,$langs,$db;
		$conf=$this->savconf;
		$user=$this->savuser;
		$langs=$this->savlangs;
		$db=$this->savdb;

		$localobject=new Adherent($this->savdb);
    	$result=$localobject->fetch($id);
		$result=$localobject->delete($id);
		print __METHOD__." id=".$id." result=".$result."\n";
		$this->assertLessThan($result, 0);

		return $result;
    }