Skip to content

Commit

Permalink
Adding a test for #5019 the plugin view file path
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Oct 30, 2014
1 parent 75f2a88 commit 5f92bd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/TestCase/View/ViewTest.php
Expand Up @@ -336,6 +336,11 @@ public function testGetTemplate() {
$request->action = 'display';
$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';
Expand Down
Empty file.

0 comments on commit 5f92bd8

Please sign in to comment.