mark WikitextContent tests as requiring database
authorAntoine Musso <hashar@free.fr>
Fri, 27 Jul 2012 20:49:58 +0000 (22:49 +0200)
committerAntoine Musso <hashar@free.fr>
Fri, 27 Jul 2012 20:49:58 +0000 (22:49 +0200)
Some of the WikitextContent tests require a database connection which
breaks the databaseless PHPUnit test job.

Change-Id: Ia78d22763bffc11a7f66a50ae67bc340939366b9

tests/phpunit/includes/WikitextContentTest.php

index e3870bd..b5b2fb5 100644 (file)
@@ -51,6 +51,7 @@ class WikitextContentTest extends MediaWikiTestCase {
 
        /**
         * @dataProvider dataGetSecondaryDataUpdates
+        * @group Database
         */
        public function testGetSecondaryDataUpdates( $title, $text, $expectedStuff ) {
                $title = Title::newFromText( $title );
@@ -342,6 +343,7 @@ just a test"
 
        /**
         * @dataProvider dataIsCountable
+        * @group Database
         */
        public function testIsCountable( $text, $hasLinks, $mode, $expected ) {
                global $wgArticleCountMethod;