mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-28 12:42:58 +00:00
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:
parent
45d50e8aaa
commit
5c7f53d9fb
1 changed files with 5 additions and 7 deletions
|
@ -75,13 +75,11 @@ class HtmlHelperTest extends UnitTestCase {
|
|||
|
||||
function testCssLink() {
|
||||
$result = $this->Html->css('screen');
|
||||
debug($result, true);
|
||||
/*$this->assertPattern('/^<input[^<>]+name="data\[Model\]\[field\]"[^<>]+\/>$/', $result);
|
||||
$this->assertPattern('/^<input[^<>]+type="text"[^<>]+\/>$/', $result);
|
||||
$this->assertPattern('/^<input[^<>]+value=""[^<>]+\/>$/', $result);
|
||||
$this->assertPattern('/^<input[^<>]+id="ModelField"[^<>]+\/>$/', $result);
|
||||
$this->assertNoPattern('/^<input[^<>]+name="[^<>]+name="[^<>]+\/>$/', $result);
|
||||
$this->assertNoPattern('/<input[^<>]+[^type|name|id|value]=[^<>]*>/', $result);*/
|
||||
$this->assertPattern('/^<link[^<>]+\/>$/', $result);
|
||||
$this->assertPattern('/^<link[^<>]+rel="stylesheet"[^<>]+\/>$/', $result);
|
||||
$this->assertPattern('/^<link[^<>]+type="text\/css"[^<>]+\/>$/', $result);
|
||||
$this->assertPattern('/^<link[^<>]+href=".*css\/screen\.css"[^<>]+\/>$/', $result);
|
||||
$this->assertNoPattern('/<input[^<>]+[^rel|type|href]=[^<>]*>/', $result);
|
||||
}
|
||||
|
||||
function testBreadcrumb() {
|
||||
|
|
Loading…
Add table
Reference in a new issue