From 805cc944da716eff6f4f648c6fd5898be8c03869 Mon Sep 17 00:00:00 2001 From: AD7six Date: Sun, 15 May 2011 19:41:34 +0200 Subject: [PATCH] correct for case sensitivity --- lib/Cake/Test/Case/View/ViewTest.php | 8 ++++---- lib/Cake/View/ScaffoldView.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Cake/Test/Case/View/ViewTest.php b/lib/Cake/Test/Case/View/ViewTest.php index ab9bb6455..50da25efe 100644 --- a/lib/Cake/Test/Case/View/ViewTest.php +++ b/lib/Cake/Test/Case/View/ViewTest.php @@ -191,7 +191,7 @@ class ViewTest extends CakeTestCase { $request = $this->getMock('CakeRequest'); $this->Controller = new Controller($request); $this->PostsController = new ViewPostsController($request); - $this->PostsController->viewPath = 'posts'; + $this->PostsController->viewPath = 'Posts'; $this->PostsController->index(); $this->View = new View($this->PostsController); App::build(array( @@ -350,7 +350,7 @@ class ViewTest extends CakeTestCase { function testMissingView() { $this->Controller->plugin = null; $this->Controller->name = 'Pages'; - $this->Controller->viewPath = 'pages'; + $this->Controller->viewPath = 'Pages'; $this->Controller->action = 'display'; $this->Controller->params['pass'] = array('home'); @@ -369,7 +369,7 @@ class ViewTest extends CakeTestCase { function testMissingLayout() { $this->Controller->plugin = null; $this->Controller->name = 'Posts'; - $this->Controller->viewPath = 'posts'; + $this->Controller->viewPath = 'Posts'; $this->Controller->layout = 'whatever'; $View = new TestView($this->Controller); @@ -751,7 +751,7 @@ class ViewTest extends CakeTestCase { $View = new TestView($this->PostsController); $result = $View->getViewFileName('index'); - $this->assertPattern('/posts(\/|\\\)index.ctp/', $result); + $this->assertPattern('/Posts(\/|\\\)index.ctp/', $result); $result = $View->getViewFileName('/Pages/home'); $this->assertPattern('/Pages(\/|\\\)home.ctp/', $result); diff --git a/lib/Cake/View/ScaffoldView.php b/lib/Cake/View/ScaffoldView.php index 01ebfe9d2..6a82133dc 100644 --- a/lib/Cake/View/ScaffoldView.php +++ b/lib/Cake/View/ScaffoldView.php @@ -80,7 +80,7 @@ class ScaffoldView extends ThemeView { } if ($name === 'scaffolds' . DS . $subDir . 'error') { - return CAKE . 'View' . DS . 'errors' . DS . 'scaffold_error.ctp'; + return CAKE . 'View' . DS . 'Errors' . DS . 'scaffold_error.ctp'; } throw new MissingViewException($paths[0] . $name . $this->ext);