mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 20:12:42 +00:00
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:
parent
f25e3b273c
commit
f41aa80b78
18 changed files with 251 additions and 269 deletions
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue