Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove copy + paste in tests.

  • Loading branch information...
commit 88465cbb4780d853e1acd67bb242602aefbf99b5 1 parent f0bd738
@markstory markstory authored
Showing with 0 additions and 54 deletions.
  1. +0 −54 lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
View
54 lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
@@ -1263,33 +1263,6 @@ public function testNestedList() {
$this->assertTags($result, $expected);
$result = $this->Html->nestedList($list, null);
- $expected = array(
- '<ul',
- '<li', 'Item 1', '/li',
- '<li', 'Item 2',
- '<ul', '<li', 'Item 2.1', '/li', '/ul',
- '/li',
- '<li', 'Item 3', '/li',
- '<li', 'Item 4',
- '<ul',
- '<li', 'Item 4.1', '/li',
- '<li', 'Item 4.2', '/li',
- '<li', 'Item 4.3',
- '<ul',
- '<li', 'Item 4.3.1', '/li',
- '<li', 'Item 4.3.2', '/li',
- '/ul',
- '/li',
- '/ul',
- '/li',
- '<li', 'Item 5',
- '<ul',
- '<li', 'Item 5.1', '/li',
- '<li', 'Item 5.2', '/li',
- '/ul',
- '/li',
- '/ul'
- );
$this->assertTags($result, $expected);
$result = $this->Html->nestedList($list, array(), array(), 'ol');
@@ -1323,33 +1296,6 @@ public function testNestedList() {
$this->assertTags($result, $expected);
$result = $this->Html->nestedList($list, 'ol');
- $expected = array(
- '<ol',
- '<li', 'Item 1', '/li',
- '<li', 'Item 2',
- '<ol', '<li', 'Item 2.1', '/li', '/ol',
- '/li',
- '<li', 'Item 3', '/li',
- '<li', 'Item 4',
- '<ol',
- '<li', 'Item 4.1', '/li',
- '<li', 'Item 4.2', '/li',
- '<li', 'Item 4.3',
- '<ol',
- '<li', 'Item 4.3.1', '/li',
- '<li', 'Item 4.3.2', '/li',
- '/ol',
- '/li',
- '/ol',
- '/li',
- '<li', 'Item 5',
- '<ol',
- '<li', 'Item 5.1', '/li',
- '<li', 'Item 5.2', '/li',
- '/ol',
- '/li',
- '/ol'
- );
$this->assertTags($result, $expected);
$result = $this->Html->nestedList($list, array('class' => 'list'));
Please sign in to comment.
Something went wrong with that request. Please try again.