correct for case sensitivity

This commit is contained in:
AD7six 2011-05-15 19:41:34 +02:00
parent a199e72610
commit 805cc944da
2 changed files with 5 additions and 5 deletions

View file

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

View file

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