parsertest now destroy virtual table under SQLite
authorAntoine Musso <hashar@users.mediawiki.org>
Thu, 27 Oct 2011 17:12:53 +0000 (17:12 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Thu, 27 Oct 2011 17:12:53 +0000 (17:12 +0000)
commit0ed4c07832f272cee885bcf8730d8514819b77c5
tree2c99772da6bf16b63fee19ca783d78357a79c9eb
parent3e70429358ff02e836dcc483a509c8eb1fa4b9b8
parsertest now destroy virtual table under SQLite

Fix:
Bug 29912 - Unit tests break if parsertest tables are still present

The parserTest suite duplicate available tables. When using temporary table
it assumed every table are temporary. Under SQLite searchindex is a virtual
table and thus remained after a run of parserTests.php
As a side effect, when running the PHPUnit with that remaining table, it
caused a nice error:

The last attempted database query was:
"DELETE FROM unittest_parsertest_searchindex"
from within function "MediaWikiTestCase::resetDB".
Database returned error "1: SQL logic error or missing database"

This patch is not needed for REL1_18 continuous integration since we
never run the parserTests.php script.
RELEASE-NOTES-1.19
tests/parser/parserTest.inc