mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Removing variable assignment from $this->{$className}->recursive = -1; Fixes #5280
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7475 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
01eec6b12e
commit
158d19e0a0
1 changed files with 1 additions and 1 deletions
|
@ -718,7 +718,7 @@ class ModelTask extends Shell {
|
|||
$out .= "\tfunction test{$className}Instance() {\n";
|
||||
$out .= "\t\t\$this->assertTrue(is_a(\$this->{$className}, '{$className}'));\n\t}\n\n";
|
||||
$out .= "\tfunction test{$className}Find() {\n";
|
||||
$out .= "\t\t\$results = \$this->{$className}->recursive = -1;\n";
|
||||
$out .= "\t\t\$this->{$className}->recursive = -1;\n";
|
||||
$out .= "\t\t\$results = \$this->{$className}->find('first');\n\t\t\$this->assertTrue(!empty(\$results));\n\n";
|
||||
$out .= "\t\t\$expected = array('$className' => array(\n$results\n\t\t\t));\n";
|
||||
$out .= "\t\t\$this->assertEqual(\$results, \$expected);\n\t}\n}\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue