Skip to content

Commit 649b863

Browse files
committed
Changing more strings after renaming folders
1 parent 7ba60ff commit 649b863

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

lib/Cake/Test/Case/View/ThemeViewTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,20 @@ function tearDown() {
147147
function testPluginThemedGetTemplate() {
148148
$this->Controller->plugin = 'TestPlugin';
149149
$this->Controller->name = 'TestPlugin';
150-
$this->Controller->viewPath = 'tests';
150+
$this->Controller->viewPath = 'Tests';
151151
$this->Controller->action = 'index';
152152
$this->Controller->theme = 'test_theme';
153153

154154
$ThemeView = new TestThemeView($this->Controller);
155-
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'test_theme' . DS . 'plugins' . DS . 'TestPlugin' . DS . 'tests' . DS .'index.ctp';
155+
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'test_theme' . DS . 'Plugins' . DS . 'TestPlugin' . DS . 'Tests' . DS .'index.ctp';
156156
$result = $ThemeView->getViewFileName('index');
157157
$this->assertEqual($result, $expected);
158158

159-
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'test_theme' . DS . 'plugins' . DS . 'TestPlugin' . DS . 'layouts' . DS .'plugin_default.ctp';
159+
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'test_theme' . DS . 'Plugins' . DS . 'TestPlugin' . DS . 'Layouts' . DS .'plugin_default.ctp';
160160
$result = $ThemeView->getLayoutFileName('plugin_default');
161161
$this->assertEqual($result, $expected);
162162

163-
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'test_theme' . DS . 'layouts' . DS .'default.ctp';
163+
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'test_theme' . DS . 'Layouts' . DS .'default.ctp';
164164
$result = $ThemeView->getLayoutFileName('default');
165165
$this->assertEqual($result, $expected);
166166
}
@@ -174,31 +174,31 @@ function testPluginThemedGetTemplate() {
174174
function testGetTemplate() {
175175
$this->Controller->plugin = null;
176176
$this->Controller->name = 'Pages';
177-
$this->Controller->viewPath = 'pages';
177+
$this->Controller->viewPath = 'Pages';
178178
$this->Controller->action = 'display';
179179
$this->Controller->params['pass'] = array('home');
180180

181181
$ThemeView = new TestThemeView($this->Controller);
182182
$ThemeView->theme = 'test_theme';
183-
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS .'pages' . DS .'home.ctp';
183+
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS .'Pages' . DS .'home.ctp';
184184
$result = $ThemeView->getViewFileName('home');
185185
$this->assertEqual($result, $expected);
186186

187-
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'test_theme' . DS . 'posts' . DS .'index.ctp';
188-
$result = $ThemeView->getViewFileName('/posts/index');
187+
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'test_theme' . DS . 'Posts' . DS .'index.ctp';
188+
$result = $ThemeView->getViewFileName('/Posts/index');
189189
$this->assertEqual($result, $expected);
190190

191-
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'test_theme' . DS . 'layouts' . DS .'default.ctp';
191+
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'test_theme' . DS . 'Layouts' . DS .'default.ctp';
192192
$result = $ThemeView->getLayoutFileName();
193193
$this->assertEqual($result, $expected);
194194

195195
$ThemeView->layoutPath = 'rss';
196-
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'layouts' . DS . 'rss' . DS . 'default.ctp';
196+
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Layouts' . DS . 'rss' . DS . 'default.ctp';
197197
$result = $ThemeView->getLayoutFileName();
198198
$this->assertEqual($result, $expected);
199199

200200
$ThemeView->layoutPath = 'emails' . DS . 'html';
201-
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'layouts' . DS . 'emails' . DS . 'html' . DS . 'default.ctp';
201+
$expected = LIBS . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Layouts' . DS . 'emails' . DS . 'html' . DS . 'default.ctp';
202202
$result = $ThemeView->getLayoutFileName();
203203
$this->assertEqual($result, $expected);
204204
}
@@ -213,7 +213,7 @@ function testGetTemplate() {
213213
function testMissingView() {
214214
$this->Controller->plugin = null;
215215
$this->Controller->name = 'Pages';
216-
$this->Controller->viewPath = 'pages';
216+
$this->Controller->viewPath = 'Pages';
217217
$this->Controller->action = 'display';
218218
$this->Controller->theme = 'my_theme';
219219

lib/Cake/View/ThemeView.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ function _paths($plugin = null, $cached = true) {
5757
if (!empty($this->theme)) {
5858
$count = count($paths);
5959
for ($i = 0; $i < $count; $i++) {
60-
if (strpos($paths[$i], DS . 'plugins' . DS) === false
60+
if (strpos($paths[$i], DS . 'Plugins' . DS) === false
6161
&& strpos($paths[$i], DS . 'Cake' . DS . 'View') === false) {
6262
if ($plugin) {
63-
$themePaths[] = $paths[$i] . 'themed'. DS . $this->theme . DS . 'plugins' . DS . $plugin . DS;
63+
$themePaths[] = $paths[$i] . 'Themed'. DS . $this->theme . DS . 'Plugins' . DS . $plugin . DS;
6464
}
65-
$themePaths[] = $paths[$i] . 'themed'. DS . $this->theme . DS;
65+
$themePaths[] = $paths[$i] . 'Themed'. DS . $this->theme . DS;
6666
}
6767
}
6868
$paths = array_merge($themePaths, $paths);

0 commit comments

Comments
 (0)