mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 15:39:53 +00:00
updating view tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6435 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
abd94bc068
commit
28545feec3
2 changed files with 5 additions and 5 deletions
|
@ -138,7 +138,7 @@ class ThemeViewTest extends UnitTestCase {
|
||||||
|
|
||||||
$ThemeView = new TestThemeView($this->Controller);
|
$ThemeView = new TestThemeView($this->Controller);
|
||||||
|
|
||||||
$expected = 'missingView';
|
$expected = TEST_CAKE_CORE_INCLUDE_PATH . 'libs' . DS . 'view' . DS . 'errors' . DS . 'missing_view.ctp';
|
||||||
$result = $ThemeView->getViewFileName('does_not_exist');
|
$result = $ThemeView->getViewFileName('does_not_exist');
|
||||||
$this->assertEqual($result, $expected);
|
$this->assertEqual($result, $expected);
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ class ThemeViewTest extends UnitTestCase {
|
||||||
$this->Controller->layout = 'whatever';
|
$this->Controller->layout = 'whatever';
|
||||||
|
|
||||||
$ThemeView = new TestThemeView($this->Controller);
|
$ThemeView = new TestThemeView($this->Controller);
|
||||||
$expected = 'missingLayout';
|
$expected = TEST_CAKE_CORE_INCLUDE_PATH . 'libs' . DS . 'view' . DS . 'errors' . DS . 'missing_layout.ctp';
|
||||||
$result = $ThemeView->getLayoutFileName();
|
$result = $ThemeView->getLayoutFileName();
|
||||||
$this->assertEqual($result, $expected);
|
$this->assertEqual($result, $expected);
|
||||||
}
|
}
|
||||||
|
|
|
@ -270,7 +270,7 @@ class ViewTest extends UnitTestCase {
|
||||||
<title>
|
<title>
|
||||||
CakePHP: the rapid development php framework: Posts </title>
|
CakePHP: the rapid development php framework: Posts </title>
|
||||||
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
<link rel="icon" href="favicon.ico" type="image/x-icon" />
|
<link rel="icon" href="favicon.ico" type="image/x-icon" />
|
||||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
||||||
<link rel="stylesheet" type="text/css" href="css/cake.generic.css" /> </head>
|
<link rel="stylesheet" type="text/css" href="css/cake.generic.css" /> </head>
|
||||||
|
@ -309,7 +309,7 @@ class ViewTest extends UnitTestCase {
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<title>yo what up</title>
|
<title>yo what up</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
<style><!--
|
<style><!--
|
||||||
P { text-align:center; font:bold 1.1em sans-serif }
|
P { text-align:center; font:bold 1.1em sans-serif }
|
||||||
A { color:#444; text-decoration:none }
|
A { color:#444; text-decoration:none }
|
||||||
|
@ -339,7 +339,7 @@ class ViewTest extends UnitTestCase {
|
||||||
<title>
|
<title>
|
||||||
CakePHP: the rapid development php framework: Posts </title>
|
CakePHP: the rapid development php framework: Posts </title>
|
||||||
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
<link rel="icon" href="favicon.ico" type="image/x-icon" />
|
<link rel="icon" href="favicon.ico" type="image/x-icon" />
|
||||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
||||||
<link rel="stylesheet" type="text/css" href="css/cake.generic.css" /> </head>
|
<link rel="stylesheet" type="text/css" href="css/cake.generic.css" /> </head>
|
||||||
|
|
Loading…
Add table
Reference in a new issue