mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 00:04:15 +00:00
build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: I12c3660e74e42937f6cfb31ec4771a67d8651f42
This commit is contained in:
parent
4adce79b8d
commit
86246f0172
|
@ -2,6 +2,7 @@
|
||||||
<ruleset>
|
<ruleset>
|
||||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
|
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
|
||||||
|
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
|
||||||
</rule>
|
</rule>
|
||||||
<file>.</file>
|
<file>.</file>
|
||||||
<arg name="extensions" value="php,php5,inc"/>
|
<arg name="extensions" value="php,php5,inc"/>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"jakub-onderka/php-parallel-lint": "1.0.0",
|
"jakub-onderka/php-parallel-lint": "1.0.0",
|
||||||
"mediawiki/mediawiki-codesniffer": "26.0.0",
|
"mediawiki/mediawiki-codesniffer": "28.0.0",
|
||||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||||
"mediawiki/minus-x": "0.3.1",
|
"mediawiki/minus-x": "0.3.1",
|
||||||
"mediawiki/mediawiki-phan-config": "0.6.1"
|
"mediawiki/mediawiki-phan-config": "0.6.1"
|
||||||
|
|
|
@ -6,7 +6,7 @@ use MediaWiki\Auth\AuthenticationRequestTestCase;
|
||||||
* @covers CaptchaAuthenticationRequest
|
* @covers CaptchaAuthenticationRequest
|
||||||
*/
|
*/
|
||||||
class CaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
class CaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
||||||
public function setUp() {
|
public function setUp() : void {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->setMwGlobals( [
|
$this->setMwGlobals( [
|
||||||
'wgCaptchaClass' => SimpleCaptcha::class,
|
'wgCaptchaClass' => SimpleCaptcha::class,
|
||||||
|
|
|
@ -9,7 +9,7 @@ use Wikimedia\TestingAccessWrapper;
|
||||||
* @group Database
|
* @group Database
|
||||||
*/
|
*/
|
||||||
class CaptchaPreAuthenticationProviderTest extends MediaWikiTestCase {
|
class CaptchaPreAuthenticationProviderTest extends MediaWikiTestCase {
|
||||||
public function setUp() {
|
public function setUp() : void {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->setMwGlobals( [
|
$this->setMwGlobals( [
|
||||||
'wgCaptchaClass' => SimpleCaptcha::class,
|
'wgCaptchaClass' => SimpleCaptcha::class,
|
||||||
|
@ -28,7 +28,7 @@ class CaptchaPreAuthenticationProviderTest extends MediaWikiTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown() {
|
public function tearDown() : void {
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
// make sure $wgCaptcha resets between tests
|
// make sure $wgCaptcha resets between tests
|
||||||
TestingAccessWrapper::newFromClass( ConfirmEditHooks::class )->instanceCreated = false;
|
TestingAccessWrapper::newFromClass( ConfirmEditHooks::class )->instanceCreated = false;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
class QuestyCaptchaTest extends MediaWikiTestCase {
|
class QuestyCaptchaTest extends MediaWikiTestCase {
|
||||||
|
|
||||||
public function setUp() {
|
public function setUp() : void {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
$this->mergeMwGlobalArrayValue(
|
$this->mergeMwGlobalArrayValue(
|
||||||
|
|
|
@ -11,7 +11,7 @@ class CaptchaTest extends MediaWikiTestCase {
|
||||||
/** @var ScopedCallback[] */
|
/** @var ScopedCallback[] */
|
||||||
private $hold = [];
|
private $hold = [];
|
||||||
|
|
||||||
public function tearDown() {
|
public function tearDown() : void {
|
||||||
// Destroy any ScopedCallbacks being held
|
// Destroy any ScopedCallbacks being held
|
||||||
$this->hold = [];
|
$this->hold = [];
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
|
Loading…
Reference in a new issue