Skip to content

Commit bf4e26a

Browse files
committed
Merge pull request phpbb#6713 from rxu/ticket/17386-master
[ticket/17386] Unify user based permissions test for 3.3.x and master branches
2 parents 7f08efb + 7c4b6cd commit bf4e26a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/functional/acp_permissions_test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)