/** * testPropalValid * * @param Proposal $localobject Proposal * @return Proposal * * @depends testPropalFetch * The depends says test is run only if previous is ok */ public function testPropalValid($localobject) { global $conf,$user,$langs,$db; $conf=$this->savconf; $user=$this->savuser; $langs=$this->savlangs; $db=$this->savdb; $result=$localobject->valid($user); print __METHOD__." id=".$localobject->id." result=".$result."\n"; $this->assertLessThan($result, 0); return $localobject; }