mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 15:36:58 +00:00
tests: Resolve phpunit filename deprecation errors
PHPUnit wants the filenames of the tests to match the class name being tested. Bug: T337333 Change-Id: I44f626d1bfdf151fecafc29c51b2cf2bb90481b0
This commit is contained in:
parent
154acac786
commit
9de512d59c
|
@ -3,11 +3,15 @@
|
||||||
<file>.</file>
|
<file>.</file>
|
||||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" />
|
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" />
|
||||||
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
|
|
||||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
|
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
|
||||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
|
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
|
||||||
<exclude name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName" />
|
<exclude name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName" />
|
||||||
</rule>
|
</rule>
|
||||||
|
<rule ref="MediaWiki.Files.ClassMatchesFilename.NotMatch">
|
||||||
|
<exclude-pattern>includes/</exclude-pattern>
|
||||||
|
<exclude-pattern>maintenance/</exclude-pattern>
|
||||||
|
<exclude-pattern>scripts/</exclude-pattern>
|
||||||
|
</rule>
|
||||||
<arg name="encoding" value="UTF-8" />
|
<arg name="encoding" value="UTF-8" />
|
||||||
<arg name="extensions" value="php" />
|
<arg name="extensions" value="php" />
|
||||||
<arg name="colors" />
|
<arg name="colors" />
|
||||||
|
|
|
@ -7,7 +7,7 @@ use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
* @group Database
|
* @group Database
|
||||||
* @group medium
|
* @group medium
|
||||||
*/
|
*/
|
||||||
class EchoTalkPageFunctionalTest extends ApiTestCase {
|
class TalkPageFunctionalTest extends ApiTestCase {
|
||||||
|
|
||||||
protected function setUp(): void {
|
protected function setUp(): void {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
|
@ -6,7 +6,7 @@ use MediaWiki\Extension\Notifications\Mapper\NotificationMapper;
|
||||||
* @group Echo
|
* @group Echo
|
||||||
* @group Database
|
* @group Database
|
||||||
*/
|
*/
|
||||||
class MWEchoThankYouEditTest extends MediaWikiIntegrationTestCase {
|
class ThankYouEditTest extends MediaWikiIntegrationTestCase {
|
||||||
|
|
||||||
protected function setUp(): void {
|
protected function setUp(): void {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
|
@ -8,7 +8,7 @@ use MediaWiki\User\UserOptionsLookup;
|
||||||
/**
|
/**
|
||||||
* @covers \EchoAttributeManager
|
* @covers \EchoAttributeManager
|
||||||
*/
|
*/
|
||||||
class EchoAttributeManagerTest extends MediaWikiUnitTestCase {
|
class AttributeManagerTest extends MediaWikiUnitTestCase {
|
||||||
|
|
||||||
private function getAttributeManager(
|
private function getAttributeManager(
|
||||||
array $notifications,
|
array $notifications,
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @covers \EchoDiffParser
|
* @covers \EchoDiffParser
|
||||||
* @group Echo
|
* @group Echo
|
||||||
*/
|
*/
|
||||||
class EchoDiffParserTest extends MediaWikiUnitTestCase {
|
class DiffParserTest extends MediaWikiUnitTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider provider_getChangeSet
|
* @dataProvider provider_getChangeSet
|
||||||
|
|
Loading…
Reference in a new issue