/** * testCategorieOther * * @param Category $localobject Category * @return int * * @depends testCategorieUpdate * The depends says test is run only if previous is ok */ public function testCategorieOther($localobject) { global $conf, $user, $langs, $db; $conf = $this->savconf; $user = $this->savuser; $langs = $this->savlangs; $db = $this->savdb; /*$result=$localobject->setstatus(0); print __METHOD__." id=".$localobject->id." result=".$result."\n"; $this->assertLessThan($result, 0); */ $localobject2 = new Categorie($db); $localobject2->initAsSpecimen(); $retarray = $localobject->liste_photos('/'); print __METHOD__ . " retarray size=" . count($retarray) . "\n"; $this->assertTrue(is_array($retarray)); return $localobject->id; }