/** * @param $attribute * @return string */ public function getField($attribute) { $table = $this->config->getTable($this->entityName); $field = $this->config->getFiled($this->entityName, $attribute); return $table . "." . $field; }
public function testGetTableException() { $this->setExpectedException(ConfigException::class); $table = $this->config->getTable('User'); }