private function addDummyModel()
 {
     $modelName = self::$modelName;
     if (!$this->checkIfModelExists($modelName)) {
         $sobimmodel = new sobimmodel_impl($this->db);
         $bogusId = $this->getBogusId();
         $sobimmodel->setModelName($modelName);
         $sobimmodel->setVfsdatabaseid($bogusId);
         $sobimmodel->addBimModel();
     }
     $this->modelId = $this->getModelId($modelName);
 }
 public function testRemoveUploadedIfcModel()
 {
     $bobimmodel = new bobimmodel_impl();
     //init dependancies
     $sovfs = new sovfs_impl($this->vfsFileName, null, $this->vfsSubModule);
     $vls_db_id = $sovfs->retrieveVfsFileId();
     $sobimmodel = new sobimmodel_impl($this->db);
     $sobimmodel->setModelName($this->modelName);
     $sobimmodel->setVfsdatabaseid($vls_db_id);
     $bobimmodel->setVfsObject($sovfs);
     $bobimmodel->setSobimmodel($sobimmodel);
     $this->assertTrue($bobimmodel->removeIfcModel());
 }
 public function testSetGetModelName()
 {
     $sobimmodel = new sobimmodel_impl($this->db);
     $sobimmodel->setModelName($this->modelName);
     $this->assertEquals($this->modelName, $sobimmodel->getModelName());
 }