Skip to content

Commit

Permalink
case corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed May 16, 2011
1 parent 3fc785d commit 40b2985
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Cake/Test/Case/Controller/ControllerTest.php
Expand Up @@ -640,7 +640,7 @@ function testRender() {
$request->params['action'] = 'index';

$Controller = new Controller($request, $this->getMock('CakeResponse'));
$Controller->viewPath = 'posts';
$Controller->viewPath = 'Posts';

$result = $Controller->render('index');
$this->assertPattern('/posts index/', $result);
Expand All @@ -649,7 +649,7 @@ function testRender() {
$result = $Controller->render();
$this->assertPattern('/posts index/', $result);

$result = $Controller->render('/elements/test_element');
$result = $Controller->render('/Elements/test_element');
$this->assertPattern('/this is the test element/', $result);
$Controller->view = null;

Expand All @@ -660,7 +660,7 @@ function testRender() {
$expected = $Controller->ControllerComment->validationErrors;

ClassRegistry::flush();
$Controller->viewPath = 'posts';
$Controller->viewPath = 'Posts';
$result = $Controller->render('index');
$View = $Controller->View;
$this->assertTrue(isset($View->validationErrors['ControllerComment']));
Expand Down Expand Up @@ -688,7 +688,7 @@ function testComponentBeforeRenderChangingViewClass() {
$Controller->components = array('Test');
$Controller->constructClasses();
$Controller->Test->viewclass = 'Theme';
$Controller->viewPath = 'posts';
$Controller->viewPath = 'Posts';
$Controller->theme = 'TestTheme';
$result = $Controller->render('index');
$this->assertPattern('/default test_theme layout/', $result);
Expand Down

0 comments on commit 40b2985

Please sign in to comment.