Changeset 47122 for trunk/tests/phpunit/tests/walker.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/walker.php
r46586 r47122 215 215 $this->assertEquals( 0, $this->walker->get_number_of_root_elements( $items ) ); 216 216 217 // It's not clear what the output of this "should" be 218 219 // Currently the item is simply returned 217 // It's not clear what the output of this "should" be. 218 219 // Currently the item is simply returned. 220 220 $this->assertEquals( '<li>1</li>', $output ); 221 221 222 222 // But as we've only asked for the first depth maybe nothing should be returned? 223 // $this->assertEquals( '', $output );223 // $this->assertEquals( '', $output ); 224 224 225 225 } … … 270 270 $this->assertEquals( 0, $this->walker->get_number_of_root_elements( $items ) ); 271 271 272 // It's not clear what the output of this "should" be 273 274 // Currently the first item is simply returned 272 // It's not clear what the output of this "should" be. 273 274 // Currently the first item is simply returned. 275 275 $this->assertEquals( '<li>4</li>', $output ); 276 276 277 277 // But as we've only asked for the first depth maybe nothing should be returned? 278 // $this->assertEquals( '', $output );278 // $this->assertEquals( '', $output ); 279 279 280 280 // Or maybe all items which are missing parents should simply be treat top level? 281 // $this->assertEquals( '<li>4</li><li>5</li><li>6</li>', $output );281 // $this->assertEquals( '<li>4</li><li>5</li><li>6</li>', $output ); 282 282 283 283 }
Note: See TracChangeset
for help on using the changeset viewer.