function testGetModelFileName() { $table = $this->conn->getDatabaseInfo()->getTable('lecture'); $model_constructor = new lmbModelConstructor(new lmbProjectConstructor($this->dir_for_test_case, new lmbCliOutput()), $this->conn->getDatabaseInfo(), $table); $model_file_name = $model_constructor->getModelFileName(); $this->assertEqual('Lecture.class.php', $model_file_name); }
public function create() { $vars = array('model_url' => lmb_under_scores($this->_model_name)); $this->_createRootElementIfNotExists(); parent::create($vars); }