Removing forcing of table name for CakeTestFixture when importing schema and records from existing model.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5972 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mariano.iglesias 2007-11-09 02:04:42 +00:00
parent 18c916fc76
commit a9bafdedb4

View file

@ -54,7 +54,6 @@ class CakeTestFixture extends Object {
*
*/
function init() {
if (isset($this->import) && (is_string($this->import) || is_array($this->import))) {
$import = array();
@ -70,7 +69,6 @@ class CakeTestFixture extends Object {
$model =& new $import['model'];
$db =& ConnectionManager::getDataSource($model->useDbConfig);
$db->cacheSources = false;
$this->table = $this->useTable;
$this->fields = $model->schema(true);
$this->fields[$model->primaryKey]['key'] = 'primary';
} elseif (isset($import['table'])) {