Page MenuHomePhabricator

Unit tests break if parsertest tables are still present
Closed, ResolvedPublic


Author: Bryan.TongMinh

Unit tests by phpunit are broken if they are run after running tests/parserTests.php on SQLite. This is caused by parsertest_searchindex still being present. DROP TABLE parsertest_searchindex fixes the issue.

PHPUnit 3.5.12 by Sebastian Bergmann.

.A database query syntax error has occurred.
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"

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:31 PM
bzimport set Reference to bz29912.

Applied as r101002
Should be released with 1.19

Backported in 1.18 with r102535