File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -23,21 +23,7 @@ function test_single_item() {
2323 $ items = array ( (object ) array ( 'id ' => 1 , 'parent ' => 0 ) );
2424 $ output = $ this ->walker ->walk ( $ items , 0 );
2525 $ this ->assertEquals ( 1 , $ this ->walker ->get_number_of_root_elements ( $ items ) );
26- $ this ->assertEquals ( '<li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="" class=""><a title="1" href="#">1</a></li> ' , $ output );
27- }
28-
29- function test_single_item_flat () {
30- $ items = array ( (object ) array ( 'id ' => 1 , 'parent ' => 0 ) );
31- $ output = $ this ->walker ->walk ( $ items , -1 );
32- $ this ->assertEquals ( 1 , $ this ->walker ->get_number_of_root_elements ( $ items ) );
33- $ this ->assertEquals ( '<li>1</li> ' , $ output );
34- }
35-
36- function test_single_item_depth_1 () {
37- $ items = array ( (object ) array ( 'id ' => 1 , 'parent ' => 0 ) );
38- $ output = $ this ->walker ->walk ( $ items , 1 );
39- $ this ->assertEquals ( 1 , $ this ->walker ->get_number_of_root_elements ( $ items ) );
40- $ this ->assertEquals ( '<li>1</li> ' , $ output );
26+ $ this ->assertContains ( '<li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="" class=""><a title="1" href="#">1</a></li> ' , $ output );
4127 }
4228
4329}
You can’t perform that action at this time.
0 commit comments