aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/preferences/SignatureValidatorTest.php
diff options
context:
space:
mode:
authorDaimona Eaytoy <daimona.wiki@gmail.com>2023-07-21 02:29:59 +0200
committerDaimona Eaytoy <daimona.wiki@gmail.com>2023-08-06 15:30:41 +0000
commit6b1a62e16946c54fb7a5f06225573c9a85170b70 (patch)
tree1b6e59e8e630ccf3f5e328f1893739d1af809aab /tests/phpunit/includes/preferences/SignatureValidatorTest.php
parentfce3b02e45f976fce76890eac8edf88848851273 (diff)
downloadmediawikicore-6b1a62e16946c54fb7a5f06225573c9a85170b70.tar.gz
mediawikicore-6b1a62e16946c54fb7a5f06225573c9a85170b70.zip
Fix more non-database tests accessing the database
Mock the needed services, or set fixed values to avoid DB lookups, when possible. Add the test to the Database group otherwise, e.g. for things like Skin and Parser that use global state all over the place. Change-Id: I8d87013d89accaf04d0ac19cb4b7216290383eb5
Diffstat (limited to 'tests/phpunit/includes/preferences/SignatureValidatorTest.php')
-rw-r--r--tests/phpunit/includes/preferences/SignatureValidatorTest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/phpunit/includes/preferences/SignatureValidatorTest.php b/tests/phpunit/includes/preferences/SignatureValidatorTest.php
index d29589b74084..519cbbdbd9d0 100644
--- a/tests/phpunit/includes/preferences/SignatureValidatorTest.php
+++ b/tests/phpunit/includes/preferences/SignatureValidatorTest.php
@@ -24,6 +24,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Preferences
+ * @group Database
*/
class SignatureValidatorTest extends MediaWikiIntegrationTestCase {