Merge "Fix MathDatabaseTest"
This commit is contained in:
commit
4eebc40812
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue