Skip MediaWikiTestCaseSchema1Test on Postgres
authorKunal Mehta <legoktm@member.fsf.org>
Sat, 2 Jun 2018 02:14:02 +0000 (19:14 -0700)
committerKrinkle <krinklemail@gmail.com>
Tue, 26 Jun 2018 15:25:43 +0000 (15:25 +0000)
According to Anomie, the idea behind this test is semi-broken, and would
benefit from T191231 being implemented first.

Bug: T195807
Change-Id: I9561fd0a82c37cf044e292e00499ecb611fcded6

tests/phpunit/tests/MediaWikiTestCaseSchema1Test.php
tests/phpunit/tests/MediaWikiTestCaseSchema2Test.php

index d794d13..aebd0bf 100644 (file)
@@ -11,6 +11,13 @@ class MediaWikiTestCaseSchema1Test extends MediaWikiTestCase {
 
        public static $hasRun = false;
 
+       public function setUp() {
+               parent::setUp();
+               if ( $this->db->getType() == 'postgres' ) {
+                       $this->markTestSkipped( __CLASS__ . ' does not support postgres' );
+               }
+       }
+
        public function getSchemaOverrides( IMaintainableDatabase $db ) {
                return [
                        'create' => [ 'MediaWikiTestCaseTestTable', 'imagelinks' ],
index 5464dc4..c0673a1 100644 (file)
  */
 class MediaWikiTestCaseSchema2Test extends MediaWikiTestCase {
 
+       public function setUp() {
+               parent::setUp();
+               if ( $this->db->getType() == 'postgres' ) {
+                       $this->markTestSkipped( __CLASS__ . ' does not support postgres' );
+               }
+       }
+
        public function testMediaWikiTestCaseSchemaTestOrder() {
                // The first test must have run before this one
                $this->assertTrue( MediaWikiTestCaseSchema1Test::$hasRun );