Fixed the tests in ThemeView and View that was affected by email changes.

This commit is contained in:
Juan Basso 2011-04-24 12:55:41 -04:00
parent 3bb8833d82
commit 96dd4a5c80
2 changed files with 4 additions and 4 deletions

View file

@ -195,8 +195,8 @@ class ThemeViewTest extends CakeTestCase {
$result = $ThemeView->getLayoutFileName();
$this->assertEqual($result, $expected);
$ThemeView->layoutPath = 'email' . DS . 'html';
$expected = LIBS . 'tests' . DS . 'test_app' . DS . 'View' . DS . 'layouts' . DS . 'email' . DS . 'html' . DS . 'default.ctp';
$ThemeView->layoutPath = 'emails' . DS . 'html';
$expected = LIBS . 'tests' . DS . 'test_app' . DS . 'View' . DS . 'layouts' . DS . 'emails' . DS . 'html' . DS . 'default.ctp';
$result = $ThemeView->getLayoutFileName();
$this->assertEqual($result, $expected);
}

View file

@ -331,8 +331,8 @@ class ViewTest extends CakeTestCase {
$result = $View->getLayoutFileName();
$this->assertEqual($result, $expected);
$View->layoutPath = 'email' . DS . 'html';
$expected = LIBS . 'tests' . DS . 'test_app' . DS . 'View' . DS . 'layouts' . DS . 'email' . DS . 'html' . DS . 'default.ctp';
$View->layoutPath = 'emails' . DS . 'html';
$expected = LIBS . 'tests' . DS . 'test_app' . DS . 'View' . DS . 'layouts' . DS . 'emails' . DS . 'html' . DS . 'default.ctp';
$result = $View->getLayoutFileName();
$this->assertEqual($result, $expected);