Skip to content

Commit

Permalink
Merge pull request phpbb#6713 from rxu/ticket/17386-master
Browse files Browse the repository at this point in the history
[ticket/17386] Unify user based permissions test for 3.3.x and master branches
  • Loading branch information
marc1706 committed Sep 1, 2024
2 parents 7f08efb + 7c4b6cd commit bf4e26a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/acp_permissions_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ public function test_tracing_user_based_permissions()
$crawler = self::submit($form);

// Test 1st "Yes" permission tracing result match
$trace_link_yes = $crawler->filter('td.yes')->eq(0)->parents()->eq(0)->filter('a.trace')->link();
$trace_link_yes = $crawler->filter('td.yes')->eq(0)->siblings()->filter('th > a.trace')->link();
$crawler_trace_yes = self::$client->click($trace_link_yes);
$this->assertEquals(1, $crawler_trace_yes->filter('tr.row2 > td.yes')->count());

// Test 1st "Never" permission tracing result match
$trace_link_never = $crawler->filter('td.never')->eq(0)->parents()->eq(0)->filter('a.trace')->link();
$trace_link_never = $crawler->filter('td.never')->eq(0)->siblings()->filter('th > a.trace')->link();
$crawler_trace_never = self::$client->click($trace_link_never);
$this->assertEquals(1, $crawler_trace_never->filter('tr.row2 > td.never')->count());
}
Expand Down

0 comments on commit bf4e26a

Please sign in to comment.