diff --git a/tests/phpunit/tests/post/listPages.php b/tests/phpunit/tests/post/listPages.php
index fa4a375..faf494a 100644
a
|
b
|
class Tests_List_Pages extends WP_UnitTestCase { |
343 | 343 | $this->AssertEquals( $expected['exclude'], $actual ); |
344 | 344 | } |
345 | 345 | |
346 | | /** |
347 | | * @ticket 27326 |
348 | | */ |
349 | | function test_wp_list_page_combo_exclude_depth() { |
350 | | $args = array( |
351 | | 'echo' => false, |
352 | | 'exclude' => '3', |
353 | | 'depth' => 3 |
354 | | ); |
355 | | $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> |
356 | | <ul class=\'children\'> |
357 | | <li class="page_item page-item-4"><a href="' . get_permalink( 4 ) . '">Child 1</a></li> |
358 | | <li class="page_item page-item-5"><a href="' . get_permalink( 5 ) . '">Child 2</a></li> |
359 | | <li class="page_item page-item-6"><a href="' . get_permalink( 6 ) . '">Child 3</a></li> |
360 | | </ul> |
361 | | </li> |
362 | | <li class="page_item page-item-2 page_item_has_children"><a href="' . get_permalink( 2 ) . '">Parent 2</a> |
363 | | <ul class=\'children\'> |
364 | | <li class="page_item page-item-7"><a href="' . get_permalink( 7 ) . '">Child 1</a></li> |
365 | | <li class="page_item page-item-8"><a href="' . get_permalink( 8 ) . '">Child 2</a></li> |
366 | | <li class="page_item page-item-9"><a href="' . get_permalink( 9 ) . '">Child 3</a></li> |
367 | | </ul> |
368 | | </li> |
369 | | <li class="page_item page-item-10"><a href="' . get_permalink( 10 ) . '">Child 1</a></li> |
370 | | <li class="page_item page-item-11"><a href="' . get_permalink( 11 ) . '">Child 2</a></li> |
371 | | <li class="page_item page-item-12"><a href="' . get_permalink( 12 ) . '">Child 3</a></li> |
372 | | </ul></li>'; |
373 | | $actual = wp_list_pages( $args ); |
374 | | $this->AssertEquals( $expected['exclude_depth'], $actual ); |
375 | | } |
376 | | |
377 | 346 | } |