From 7c4b6cde8bba3f8495436bb8c55218ebc6232879 Mon Sep 17 00:00:00 2001 From: rxu Date: Sun, 1 Sep 2024 23:04:33 +0700 Subject: [PATCH] [ticket/17386] Fix user based permissions test PHPBB-17386 --- tests/functional/acp_permissions_test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/acp_permissions_test.php b/tests/functional/acp_permissions_test.php index fbcfa1ab241..39ecbf99e28 100644 --- a/tests/functional/acp_permissions_test.php +++ b/tests/functional/acp_permissions_test.php @@ -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()); }