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:
mark_story 2008-08-18 23:28:16 +00:00
parent 01eec6b12e
commit 158d19e0a0

View file

@ -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";