Jjanes has uploaded a new change for review.
https://gerrit.wikimedia.org/r/260503
Change subject: PHPUnit: Add Database tag where needed
......................................................................
PHPUnit: Add Database tag where needed
Add the "@group Database" tag where needed so that "make databaseless"
works as advertised.
It isn't clear what benefit we get from this features, but if we
continue to document it, then it should work.
Change-Id: I89d771c63a54aaa5d42fced38e4e93f125640188
---
M tests/phpunit/includes/api/ApiMainTest.php
M tests/phpunit/includes/content/CssContentHandlerTest.php
M tests/phpunit/includes/content/JavaScriptContentHandlerTest.php
M tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php
M tests/phpunit/includes/logging/BlockLogFormatterTest.php
M tests/phpunit/includes/logging/DeleteLogFormatterTest.php
M tests/phpunit/includes/logging/ImportLogFormatterTest.php
M tests/phpunit/includes/logging/MergeLogFormatterTest.php
M tests/phpunit/includes/logging/MoveLogFormatterTest.php
M tests/phpunit/includes/logging/PageLangLogFormatterTest.php
M tests/phpunit/includes/logging/PatrolLogFormatterTest.php
M tests/phpunit/includes/logging/ProtectLogFormatterTest.php
M tests/phpunit/includes/logging/RightsLogFormatterTest.php
M tests/phpunit/includes/logging/UploadLogFormatterTest.php
M tests/phpunit/includes/password/UserPasswordPolicyTest.php
M tests/phpunit/includes/resourceloader/MessageBlobStoreTest.php
M tests/phpunit/includes/resourceloader/ResourceLoaderModuleTest.php
M tests/phpunit/includes/title/NaiveImportTitleFactoryTest.php
M tests/phpunit/includes/title/NamespaceImportTitleFactoryTest.php
M tests/phpunit/structure/ApiDocumentationTest.php
20 files changed, 48 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/03/260503/1
diff --git a/tests/phpunit/includes/api/ApiMainTest.php
b/tests/phpunit/includes/api/ApiMainTest.php
index aef4815..041e1b7 100644
--- a/tests/phpunit/includes/api/ApiMainTest.php
+++ b/tests/phpunit/includes/api/ApiMainTest.php
@@ -3,6 +3,7 @@
/**
* @group API
* @group medium
+ * @group Database
*
* @covers ApiMain
*/
diff --git a/tests/phpunit/includes/content/CssContentHandlerTest.php
b/tests/phpunit/includes/content/CssContentHandlerTest.php
index 4da8274..970bc18 100644
--- a/tests/phpunit/includes/content/CssContentHandlerTest.php
+++ b/tests/phpunit/includes/content/CssContentHandlerTest.php
@@ -1,5 +1,8 @@
<?php
+/**
+ * @group Database
+ */
class CssContentHandlerTest extends MediaWikiLangTestCase {
/**
diff --git a/tests/phpunit/includes/content/JavaScriptContentHandlerTest.php
b/tests/phpunit/includes/content/JavaScriptContentHandlerTest.php
index d9487a0..d016854 100644
--- a/tests/phpunit/includes/content/JavaScriptContentHandlerTest.php
+++ b/tests/phpunit/includes/content/JavaScriptContentHandlerTest.php
@@ -1,5 +1,8 @@
<?php
+/**
+ * @group Database
+ */
class JavaScriptContentHandlerTest extends MediaWikiLangTestCase {
/**
diff --git a/tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php
b/tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php
index ee0cf2d..009107b 100644
--- a/tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php
+++ b/tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php
@@ -1,5 +1,8 @@
<?php
+/**
+ * @group Database
+ */
class MigrateFileRepoLayoutTest extends MediaWikiTestCase {
protected $tmpPrefix;
protected $migratorMock;
diff --git a/tests/phpunit/includes/logging/BlockLogFormatterTest.php
b/tests/phpunit/includes/logging/BlockLogFormatterTest.php
index c7dc641..5a087c3 100644
--- a/tests/phpunit/includes/logging/BlockLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/BlockLogFormatterTest.php
@@ -1,5 +1,8 @@
<?php
+/**
+ * @group Database
+ */
class BlockLogFormatterTest extends LogFormatterTestCase {
/**
diff --git a/tests/phpunit/includes/logging/DeleteLogFormatterTest.php
b/tests/phpunit/includes/logging/DeleteLogFormatterTest.php
index 28e7efa..373e5f3 100644
--- a/tests/phpunit/includes/logging/DeleteLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/DeleteLogFormatterTest.php
@@ -1,5 +1,8 @@
<?php
+/**
+ * @group Database
+ */
class DeleteLogFormatterTest extends LogFormatterTestCase {
/**
diff --git a/tests/phpunit/includes/logging/ImportLogFormatterTest.php
b/tests/phpunit/includes/logging/ImportLogFormatterTest.php
index 5e67c6b..09f5477 100644
--- a/tests/phpunit/includes/logging/ImportLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/ImportLogFormatterTest.php
@@ -1,5 +1,8 @@
<?php
+/**
+ * @group Database
+ */
class ImportLogFormatterTest extends LogFormatterTestCase {
/**
diff --git a/tests/phpunit/includes/logging/MergeLogFormatterTest.php
b/tests/phpunit/includes/logging/MergeLogFormatterTest.php
index 2ff0ddf..5ae0885 100644
--- a/tests/phpunit/includes/logging/MergeLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/MergeLogFormatterTest.php
@@ -1,5 +1,8 @@
<?php
+/**
+ * @group Database
+ */
class MergeLogFormatterTest extends LogFormatterTestCase {
/**
diff --git a/tests/phpunit/includes/logging/MoveLogFormatterTest.php
b/tests/phpunit/includes/logging/MoveLogFormatterTest.php
index fdc4b7e..0601cae 100644
--- a/tests/phpunit/includes/logging/MoveLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/MoveLogFormatterTest.php
@@ -1,5 +1,8 @@
<?php
+/**
+ * @group Database
+ */
class MoveLogFormatterTest extends LogFormatterTestCase {
/**
diff --git a/tests/phpunit/includes/logging/PageLangLogFormatterTest.php
b/tests/phpunit/includes/logging/PageLangLogFormatterTest.php
index 226e492..6a2ddf7 100644
--- a/tests/phpunit/includes/logging/PageLangLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/PageLangLogFormatterTest.php
@@ -1,5 +1,8 @@
<?php
+/**
+ * @group Database
+ */
class PageLangLogFormatterTest extends LogFormatterTestCase {
protected function setUp() {
diff --git a/tests/phpunit/includes/logging/PatrolLogFormatterTest.php
b/tests/phpunit/includes/logging/PatrolLogFormatterTest.php
index 6e1c5ef..76b6f39 100644
--- a/tests/phpunit/includes/logging/PatrolLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/PatrolLogFormatterTest.php
@@ -1,5 +1,8 @@
<?php
+/**
+ * @group Database
+ */
class PatrolLogFormatterTest extends LogFormatterTestCase {
/**
diff --git a/tests/phpunit/includes/logging/ProtectLogFormatterTest.php
b/tests/phpunit/includes/logging/ProtectLogFormatterTest.php
index 17decf3..865cef3 100644
--- a/tests/phpunit/includes/logging/ProtectLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/ProtectLogFormatterTest.php
@@ -1,5 +1,8 @@
<?php
+/**
+ * @group Database
+ */
class ProtectLogFormatterTest extends LogFormatterTestCase {
/**
diff --git a/tests/phpunit/includes/logging/RightsLogFormatterTest.php
b/tests/phpunit/includes/logging/RightsLogFormatterTest.php
index 6e4c589..283c9f9 100644
--- a/tests/phpunit/includes/logging/RightsLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/RightsLogFormatterTest.php
@@ -1,5 +1,8 @@
<?php
+/**
+ * @group Database
+ */
class RightsLogFormatterTest extends LogFormatterTestCase {
/**
diff --git a/tests/phpunit/includes/logging/UploadLogFormatterTest.php
b/tests/phpunit/includes/logging/UploadLogFormatterTest.php
index 12f5161..d0c92a5 100644
--- a/tests/phpunit/includes/logging/UploadLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/UploadLogFormatterTest.php
@@ -1,5 +1,8 @@
<?php
+/**
+ * @group Database
+ */
class UploadLogFormatterTest extends LogFormatterTestCase {
/**
diff --git a/tests/phpunit/includes/password/UserPasswordPolicyTest.php
b/tests/phpunit/includes/password/UserPasswordPolicyTest.php
index b419203..fad20f2 100644
--- a/tests/phpunit/includes/password/UserPasswordPolicyTest.php
+++ b/tests/phpunit/includes/password/UserPasswordPolicyTest.php
@@ -18,6 +18,7 @@
* http://www.gnu.org/copyleft/gpl.html
*
* @file
+ * @group Database
*/
class UserPasswordPolicyTest extends MediaWikiTestCase {
diff --git a/tests/phpunit/includes/resourceloader/MessageBlobStoreTest.php
b/tests/phpunit/includes/resourceloader/MessageBlobStoreTest.php
index 776538a..f461a5f 100644
--- a/tests/phpunit/includes/resourceloader/MessageBlobStoreTest.php
+++ b/tests/phpunit/includes/resourceloader/MessageBlobStoreTest.php
@@ -2,6 +2,7 @@
/**
* @group Cache
+ * @group Database
* @covers MessageBlobStore
*/
class MessageBlobStoreTest extends PHPUnit_Framework_TestCase {
diff --git a/tests/phpunit/includes/resourceloader/ResourceLoaderModuleTest.php
b/tests/phpunit/includes/resourceloader/ResourceLoaderModuleTest.php
index 3f2a5e2..54f165b 100644
--- a/tests/phpunit/includes/resourceloader/ResourceLoaderModuleTest.php
+++ b/tests/phpunit/includes/resourceloader/ResourceLoaderModuleTest.php
@@ -1,5 +1,8 @@
<?php
+/**
+ * @group Database
+ */
class ResourceLoaderModuleTest extends ResourceLoaderTestCase {
/**
diff --git a/tests/phpunit/includes/title/NaiveImportTitleFactoryTest.php
b/tests/phpunit/includes/title/NaiveImportTitleFactoryTest.php
index 98b414e..a280f65 100644
--- a/tests/phpunit/includes/title/NaiveImportTitleFactoryTest.php
+++ b/tests/phpunit/includes/title/NaiveImportTitleFactoryTest.php
@@ -23,6 +23,7 @@
* @covers NaiveImportTitleFactory
*
* @group Title
+ * @group Database
*/
class NaiveImportTitleFactoryTest extends MediaWikiTestCase {
diff --git a/tests/phpunit/includes/title/NamespaceImportTitleFactoryTest.php
b/tests/phpunit/includes/title/NamespaceImportTitleFactoryTest.php
index d6fe684..92cc54c 100644
--- a/tests/phpunit/includes/title/NamespaceImportTitleFactoryTest.php
+++ b/tests/phpunit/includes/title/NamespaceImportTitleFactoryTest.php
@@ -23,6 +23,7 @@
* @covers NamespaceImportTitleFactory
*
* @group Title
+ * @group Database
*/
class NamespaceImportTitleFactoryTest extends MediaWikiTestCase {
diff --git a/tests/phpunit/structure/ApiDocumentationTest.php
b/tests/phpunit/structure/ApiDocumentationTest.php
index d2f96dc..94687d9 100644
--- a/tests/phpunit/structure/ApiDocumentationTest.php
+++ b/tests/phpunit/structure/ApiDocumentationTest.php
@@ -7,6 +7,7 @@
* configuration, but it should catch many cases for forgotten i18n.
*
* @group API
+ * @group Database
*/
class ApiDocumentationTest extends MediaWikiTestCase {
--
To view, visit https://gerrit.wikimedia.org/r/260503
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I89d771c63a54aaa5d42fced38e4e93f125640188
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Jjanes <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits