private function duplicateTaxonomyFromPoolToTest($poolTaxonomyId) { $testTaxonomy = new ilObjTaxonomy(); $testTaxonomy->create(); $poolTaxonomy = new ilObjTaxonomy($poolTaxonomyId); $poolTaxonomy->doCloneObject($testTaxonomy, null, null); $poolTaxonomy->getTree()->readRootId(); $testTaxonomy->getTree()->readRootId(); $testTaxonomy->update(); ilObjTaxonomy::saveUsage($testTaxonomy->getId(), $this->testOBJ->getId()); $this->duplicatedTaxonomiesKeysMap->addDuplicatedTaxonomy($poolTaxonomy, $testTaxonomy); }