Fixing test case for HtmlHelper::css()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5659 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-09-16 19:39:43 +00:00
parent 45d50e8aaa
commit 5c7f53d9fb

View file

@ -75,13 +75,11 @@ class HtmlHelperTest extends UnitTestCase {
function testCssLink() { function testCssLink() {
$result = $this->Html->css('screen'); $result = $this->Html->css('screen');
debug($result, true); $this->assertPattern('/^<link[^<>]+\/>$/', $result);
/*$this->assertPattern('/^<input[^<>]+name="data\[Model\]\[field\]"[^<>]+\/>$/', $result); $this->assertPattern('/^<link[^<>]+rel="stylesheet"[^<>]+\/>$/', $result);
$this->assertPattern('/^<input[^<>]+type="text"[^<>]+\/>$/', $result); $this->assertPattern('/^<link[^<>]+type="text\/css"[^<>]+\/>$/', $result);
$this->assertPattern('/^<input[^<>]+value=""[^<>]+\/>$/', $result); $this->assertPattern('/^<link[^<>]+href=".*css\/screen\.css"[^<>]+\/>$/', $result);
$this->assertPattern('/^<input[^<>]+id="ModelField"[^<>]+\/>$/', $result); $this->assertNoPattern('/<input[^<>]+[^rel|type|href]=[^<>]*>/', $result);
$this->assertNoPattern('/^<input[^<>]+name="[^<>]+name="[^<>]+\/>$/', $result);
$this->assertNoPattern('/<input[^<>]+[^type|name|id|value]=[^<>]*>/', $result);*/
} }
function testBreadcrumb() { function testBreadcrumb() {