Fix MathDatabaseTest

The test used an unnecessary call to
setupTestDB. This might have caused
that the unittest_math table was deleted
twice during the setup routine of the
unittest.

Bug: 67148
Change-Id: I4a414900c1c2d97b759ef1755e53e82c5c2e8e14
This commit is contained in:
physikerwelt (Moritz Schubotz) 2014-06-28 00:20:09 +02:00 committed by physikerwelt
parent 9f54b57689
commit cac44883d3
1 changed files with 14 additions and 13 deletions

View File

@ -1,4 +1,5 @@
<?php
/**
* Test the database access and core functionality of MathRenderer.
*
@ -33,8 +34,8 @@ class MathDatabaseTest extends MediaWikiTestCase {
// Create a new instance of MathSource
$this->renderer = new MathTexvc( self::SOME_TEX );
$this->tablesUsed[] = 'math';
self::setupTestDB( $this->db, "mathtest" );
}
/**
* Checks the tex and hash functions
* @covers MathRenderer::getInputHash()
@ -54,6 +55,7 @@ class MathDatabaseTest extends MediaWikiTestCase {
$this->renderer->setHtml( self::SOME_HTML );
$this->renderer->setOutputHash( self::SOME_OUTPUTHASH );
}
/**
* Checks database access. Writes an entry and reads it back.
* @covers MathRenderer::writeDatabaseEntry()
@ -71,7 +73,6 @@ class MathDatabaseTest extends MediaWikiTestCase {
}
/**
* Checks the creation of the math table without debugging enabled.
* @covers MathHooks::onLoadExtensionSchemaUpdates