Skip to content
Permalink
Browse files

Fix test failures.

Fix test failures related to ViewVarsTrait.
  • Loading branch information...
markstory committed Feb 22, 2013
1 parent 823c731 commit d5805e193de7a439ab4adee352cbe8a9c26d4150
@@ -319,8 +319,8 @@ public function testBakeWithPlugin() {
$result = $this->Task->bake('Articles', '--actions--', array(), array(), array());
$this->assertContains("App::uses('ControllerTestAppController', 'ControllerTest.Controller');", $result);
$this->assertEquals('ControllerTest', $this->Task->Template->templateVars['plugin']);
$this->assertEquals('ControllerTest.', $this->Task->Template->templateVars['pluginPath']);
$this->assertEquals('ControllerTest', $this->Task->Template->viewVars['plugin']);
$this->assertEquals('ControllerTest.', $this->Task->Template->viewVars['pluginPath']);
Plugin::unload();
}
@@ -322,7 +322,6 @@ public function testExportVar() {
(int) 1 => 'Form'
)
viewPath => ''
viewVars => array()
view => null
layout => 'default'
layoutPath => null
@@ -338,6 +337,7 @@ public function testExportVar() {
response => object(Cake\Network\Response) {}
elementCache => 'default'
elementCacheSettings => array()
viewVars => array()
int => (int) 2
float => (float) 1.333
[protected] _passedVars => array(

0 comments on commit d5805e1

Please sign in to comment.
You can’t perform that action at this time.