File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -162,12 +162,12 @@ public function test_tracing_user_based_permissions()
162162 $ crawler = self ::submit ($ form );
163163
164164 // Test 1st "Yes" permission tracing result match
165- $ trace_link_yes = $ crawler ->filter ('td.yes ' )->eq (0 )->parents ()->eq ( 0 )-> filter ('a.trace ' )->link ();
165+ $ trace_link_yes = $ crawler ->filter ('td.yes ' )->eq (0 )->siblings ()->filter ('th > a.trace ' )->link ();
166166 $ crawler_trace_yes = self ::$ client ->click ($ trace_link_yes );
167167 $ this ->assertEquals (1 , $ crawler_trace_yes ->filter ('tr.row2 > td.yes ' )->count ());
168168
169169 // Test 1st "Never" permission tracing result match
170- $ trace_link_never = $ crawler ->filter ('td.never ' )->eq (0 )->parents ()->eq ( 0 )-> filter ('a.trace ' )->link ();
170+ $ trace_link_never = $ crawler ->filter ('td.never ' )->eq (0 )->siblings ()->filter ('th > a.trace ' )->link ();
171171 $ crawler_trace_never = self ::$ client ->click ($ trace_link_never );
172172 $ this ->assertEquals (1 , $ crawler_trace_never ->filter ('tr.row2 > td.never ' )->count ());
173173 }
You can’t perform that action at this time.
0 commit comments