diff --git a/tests/MathDatabaseTest.php b/tests/MathDatabaseTest.php index 9014896..5b653fc 100644 --- a/tests/MathDatabaseTest.php +++ b/tests/MathDatabaseTest.php @@ -83,6 +83,12 @@ class MathDatabaseTest extends MediaWikiTestCase { * @covers MathHooks::onLoadExtensionSchemaUpdates */ public function testBasicCreateTable() { + if( $this->db->getType() === 'sqlite' ) { + $this->markTestSkipped( "SQLite has global indices. We cannot " . + "create the `unitest_math` table, its math_inputhash index " . + "would conflict with the one from the real `math` table." + ); + } global $wgDebugMath; $this->db->dropTable( "math", __METHOD__ ); $wgDebugMath = false; @@ -96,6 +102,4 @@ class MathDatabaseTest extends MediaWikiTestCase { $this->assertEquals( sizeof( $row ), 2 * self::NUM_BASIC_FIELDS ); } - - -} \ No newline at end of file +}