Fix scaffold test on console, replaced 'var' with 'public'.

This commit is contained in:
predominant 2010-04-09 22:55:43 +10:00
parent 14280d6b5f
commit 75c741f5a6

View file

@ -259,7 +259,7 @@ class ControllerTaskTest extends CakeTestCase {
$result = $this->Task->bake('Articles', 'scaffold', $helpers, $components); $result = $this->Task->bake('Articles', 'scaffold', $helpers, $components);
$this->assertPattern('/class ArticlesController extends AppController/', $result); $this->assertPattern('/class ArticlesController extends AppController/', $result);
$this->assertPattern('/var \$scaffold/', $result); $this->assertPattern('/public \$scaffold/', $result);
$this->assertNoPattern('/helpers/', $result); $this->assertNoPattern('/helpers/', $result);
$this->assertNoPattern('/components/', $result); $this->assertNoPattern('/components/', $result);