From fea90acdb2cabdeb5ae8a11789459b88bcdf8492 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 14 Jul 2026 20:42:50 +0200 Subject: [PATCH] fix: resolve service registry pollution in CSRFTest --- .github/scripts/random-tests-config.txt | 2 +- tests/system/Filters/CSRFTest.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/scripts/random-tests-config.txt b/.github/scripts/random-tests-config.txt index 413fe10c8d89..79a74b5f9ef2 100644 --- a/.github/scripts/random-tests-config.txt +++ b/.github/scripts/random-tests-config.txt @@ -25,7 +25,7 @@ Cookie # Entity Events Files -# Filters +Filters Format HTTP # Helpers diff --git a/tests/system/Filters/CSRFTest.php b/tests/system/Filters/CSRFTest.php index d1977e4f5cea..71a6dfc28e7e 100644 --- a/tests/system/Filters/CSRFTest.php +++ b/tests/system/Filters/CSRFTest.php @@ -40,6 +40,9 @@ final class CSRFTest extends CIUnitTestCase protected function setUp(): void { parent::setUp(); + + $this->resetServices(); + $this->config = new \Config\Filters(); }