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