mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
correct for case sensitivity
This commit is contained in:
parent
a199e72610
commit
805cc944da
2 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue