Browse Source

Adding a test for https://github.com/cakephp/cakephp/pull/5019 the plugin view file path

Florian Krämer 11 years ago
parent
commit
5f92bd8613

+ 5 - 0
tests/TestCase/View/ViewTest.php

@@ -337,6 +337,11 @@ class ViewTest extends TestCase {
 		$request->params['pass'] = array('home');
 
 		$ThemeView = new TestView(null, null, null, $viewOptions);
+		$expected = TEST_APP . 'Plugin' . DS . 'Company' . DS . 'TestPluginThree' . DS . 'src' . DS . 'Template' . DS . 'Pages' . DS . 'index.ctp';
+		$result = $ThemeView->getViewFileName('Company/TestPluginThree./Pages/index');
+		$this->assertPathEquals($expected, $result);
+
+		$ThemeView = new TestView(null, null, null, $viewOptions);
 		$ThemeView->theme = 'TestTheme';
 		$expected = TEST_APP . 'TestApp' . DS . 'Template' . DS . 'Pages' . DS . 'home.ctp';
 		$result = $ThemeView->getViewFileName('home');

+ 0 - 0
tests/test_app/Plugin/Company/TestPluginThree/src/Template/Pages/index.ctp