Last modified: 2011-02-08 20:22:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T27745, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25745 - PHPUnit parser tests add articles to the database
PHPUnit parser tests add articles to the database
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
1.17.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-01 21:52 UTC by Platonides
Modified: 2011-02-08 20:22 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Platonides 2010-11-01 21:52:42 UTC
PHPUnit parser tests modify the db database. Even if they are not going to be run.
MediaWikiParserTest loads the tests using TestFileIterator (parserTest.inc) which add the articles to the db when encountering them in parserTests.txt.

PS: They are broken as of r74646, so it may make sense to fix them before.
Comment 1 X! 2010-12-28 17:27:39 UTC
In r79109, the ability to use a non-production database is enabled, so this could be fixed fairly easily now.
Comment 2 X! 2011-01-01 22:23:28 UTC
In the rewrite of the parser tests in PHPUnit, this has been fixed in trunk. The old ones are kept for now until they are checked in CodeReview, but this has probably been fixed.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links