Changeset 52010 for trunk/tests/phpunit/tests/walker.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/walker.php
r51568 r52010 9 9 class Tests_Walker extends WP_UnitTestCase { 10 10 11 function set_up() {11 public function set_up() { 12 12 parent::set_up(); 13 13 … … 15 15 } 16 16 17 function test_single_item() {17 public function test_single_item() { 18 18 19 19 $items = array( … … 30 30 } 31 31 32 function test_single_item_flat() {32 public function test_single_item_flat() { 33 33 34 34 $items = array( … … 45 45 } 46 46 47 function test_single_item_depth_1() {47 public function test_single_item_depth_1() { 48 48 49 49 $items = array( … … 60 60 } 61 61 62 function test_multiple_items_single_level() {62 public function test_multiple_items_single_level() { 63 63 64 64 $items = array( … … 80 80 } 81 81 82 function test_multiple_items_multiple_levels() {82 public function test_multiple_items_multiple_levels() { 83 83 84 84 $items = array( … … 100 100 } 101 101 102 function test_multiple_items_multiple_levels_flat() {102 public function test_multiple_items_multiple_levels_flat() { 103 103 104 104 $items = array( … … 120 120 } 121 121 122 function test_multiple_items_multiple_levels_depth_1() {122 public function test_multiple_items_multiple_levels_depth_1() { 123 123 124 124 $items = array( … … 140 140 } 141 141 142 function test_multiple_items_multiple_levels_depth_2() {142 public function test_multiple_items_multiple_levels_depth_2() { 143 143 144 144 $items = array( … … 164 164 } 165 165 166 function test_multiple_items_recursive() {166 public function test_multiple_items_recursive() { 167 167 168 168 $items = array( … … 184 184 } 185 185 186 function test_single_item_child() {186 public function test_single_item_child() { 187 187 188 188 $items = array( … … 200 200 } 201 201 202 function test_single_item_missing_parent_depth_1() {202 public function test_single_item_missing_parent_depth_1() { 203 203 204 204 $items = array( … … 223 223 } 224 224 225 function test_multiple_items_missing_parents() {225 public function test_multiple_items_missing_parents() { 226 226 227 227 $items = array( … … 247 247 } 248 248 249 function test_multiple_items_missing_parents_depth_1() {249 public function test_multiple_items_missing_parents_depth_1() { 250 250 251 251 $items = array( … … 284 284 * @ticket 53474 285 285 */ 286 function test_multiple_items_non_numeric_parent() {286 public function test_multiple_items_non_numeric_parent() { 287 287 288 288 $items = array( … … 321 321 ); 322 322 323 function start_lvl( &$output, $depth = 0, $args = array() ) {323 public function start_lvl( &$output, $depth = 0, $args = array() ) { 324 324 $output .= '<ul>'; 325 325 } 326 326 327 function end_lvl( &$output, $depth = 0, $args = array() ) {327 public function end_lvl( &$output, $depth = 0, $args = array() ) { 328 328 $output .= '</ul>'; 329 329 } 330 330 331 function start_el( &$output, $item, $depth = 0, $args = array(), $current_page = 0 ) {331 public function start_el( &$output, $item, $depth = 0, $args = array(), $current_page = 0 ) { 332 332 $output .= '<li>' . $item->id; 333 333 } 334 334 335 function end_el( &$output, $page, $depth = 0, $args = array() ) {335 public function end_el( &$output, $page, $depth = 0, $args = array() ) { 336 336 $output .= '</li>'; 337 337 }
Note: See TracChangeset
for help on using the changeset viewer.