Removing vars that are no longer used.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5904 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-10-27 01:32:17 +00:00
parent f25e3b273c
commit f41aa80b78
18 changed files with 251 additions and 269 deletions

View file

@ -631,7 +631,7 @@ class DboSourceTest extends UnitTestCase {
$linkModel =& $this->model->Category2->{$assoc};
$external = isset($assocData['external']);
if ($this->model->Category2->currentModel == $linkModel->currentModel && $type != 'hasAndBelongsToMany' && $type != 'hasMany') {
if ($this->model->Category2->alias == $linkModel->alias && $type != 'hasAndBelongsToMany' && $type != 'hasMany') {
$result = $this->db->generateSelfAssociationQuery($this->model->Category2, $linkModel, $type, $assoc, $assocData, $queryData, $external, $null);
$this->assertTrue($result);
} else {

View file

@ -570,7 +570,7 @@ class ModelTest extends CakeTestCase {
function testIdentity() {
$this->model =& new Test();
$result = $this->model->currentModel;
$result = $this->model->alias;
$expected = 'Test';
$this->assertEqual($result, $expected);
}