WordPress.org

Make WordPress Core

Changeset 30523


Ignore:
Timestamp:
11/22/2014 08:43:56 PM (6 years ago)
Author:
boonebgorges
Message:

Remove failing test related to wp_list_pages().

The test has been added as a patch to #27326.

Props MikeHansenMe.
See #30284.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/listPages.php

    r28400 r30523  
    343343        $this->AssertEquals( $expected['exclude'], $actual );
    344344    }
    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 
    377345}
Note: See TracChangeset for help on using the changeset viewer.