public function init($documentId = null) { if (!empty($documentId)) { $this->setId($documentId); } $this->getChildren(); }
/** * Test * * @return void */ public function testInit() { $id = $this->object->getId(); $this->object->init($id); $this->assertEquals($id, $this->object->getId()); }