mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Fixed the tests in ThemeView and View that was affected by email changes.
This commit is contained in:
parent
3bb8833d82
commit
96dd4a5c80
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue