Remove failing test related to wp_list_pages()
.
The test has been added as a patch to #27326. Props MikeHansenMe. See #30284. git-svn-id: https://develop.svn.wordpress.org/trunk@30523 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
086d0311fa
commit
83a9ac46fe
@ -342,36 +342,4 @@ class Tests_List_Pages extends WP_UnitTestCase {
|
||||
$actual = wp_list_pages( $args );
|
||||
$this->AssertEquals( $expected['exclude'], $actual );
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 27326
|
||||
*/
|
||||
function test_wp_list_page_combo_exclude_depth() {
|
||||
$args = array(
|
||||
'echo' => false,
|
||||
'exclude' => '3',
|
||||
'depth' => 3
|
||||
);
|
||||
$expected['exclude_depth'] = '<li class="pagenav">Pages<ul><li class="page_item page-item-1 page_item_has_children"><a href="' . get_permalink( 1 ) . '">Parent 1</a>
|
||||
<ul class=\'children\'>
|
||||
<li class="page_item page-item-4"><a href="' . get_permalink( 4 ) . '">Child 1</a></li>
|
||||
<li class="page_item page-item-5"><a href="' . get_permalink( 5 ) . '">Child 2</a></li>
|
||||
<li class="page_item page-item-6"><a href="' . get_permalink( 6 ) . '">Child 3</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="page_item page-item-2 page_item_has_children"><a href="' . get_permalink( 2 ) . '">Parent 2</a>
|
||||
<ul class=\'children\'>
|
||||
<li class="page_item page-item-7"><a href="' . get_permalink( 7 ) . '">Child 1</a></li>
|
||||
<li class="page_item page-item-8"><a href="' . get_permalink( 8 ) . '">Child 2</a></li>
|
||||
<li class="page_item page-item-9"><a href="' . get_permalink( 9 ) . '">Child 3</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="page_item page-item-10"><a href="' . get_permalink( 10 ) . '">Child 1</a></li>
|
||||
<li class="page_item page-item-11"><a href="' . get_permalink( 11 ) . '">Child 2</a></li>
|
||||
<li class="page_item page-item-12"><a href="' . get_permalink( 12 ) . '">Child 3</a></li>
|
||||
</ul></li>';
|
||||
$actual = wp_list_pages( $args );
|
||||
$this->AssertEquals( $expected['exclude_depth'], $actual );
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user