aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/preferences/SignatureValidatorTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/preferences/SignatureValidatorTest.php')
-rw-r--r--tests/phpunit/includes/preferences/SignatureValidatorTest.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/phpunit/includes/preferences/SignatureValidatorTest.php b/tests/phpunit/includes/preferences/SignatureValidatorTest.php
index d2aba241762f..b2d938ac8b9f 100644
--- a/tests/phpunit/includes/preferences/SignatureValidatorTest.php
+++ b/tests/phpunit/includes/preferences/SignatureValidatorTest.php
@@ -177,27 +177,6 @@ class SignatureValidatorTest extends MediaWikiIntegrationTestCase {
$this->assertSame( $expected, $result );
}
- /**
- * @covers \MediaWiki\Preferences\SignatureValidator::validateSignature()
- * @dataProvider provideValidateSignature
- */
- public function testValidateSignatureHidden( string $signature, $expected ) {
- // For testing hidden category support in ::testValidateSignature
- $this->overrideConfigValue( 'LinterCategories', [
- 'fostered' => [ 'priority' => 'medium' ],
- // A hidden category, for testing.
- 'wikilink-in-extlink' => [ 'priority' => 'none' ],
- ] );
- $this->validator = $this->getSignatureValidator();
- $result = $this->validator->validateSignature( $signature );
- if ( $expected === 'hidden' ) {
- $expected = false;
- } elseif ( is_string( $expected ) ) {
- $expected = true;
- }
- $this->assertSame( $expected, $result );
- }
-
public function provideValidateSignature() {
yield 'Perfect' => [
'[[User:SignatureValidatorTest|Signature]] ([[User talk:SignatureValidatorTest|talk]])',
@@ -214,13 +193,6 @@ class SignatureValidatorTest extends MediaWikiIntegrationTestCase {
// This is allowed by SignatureAllowedLintErrors
'allowed'
];
- // Testing hidden category support; 'wikilink-in-extlink' has been
- // made hidden.
- yield 'Wikilink in Extlint (hidden)' => [
- '[http://example.com [[Foo]]!] [[User:SignatureValidatorTest|Signature]] ([[User talk:SignatureValidatorTest|talk]])',
- // This is allowed because the category is hidden
- 'hidden'
- ];
}
/**