Last modified: 2013-11-14 14:30:02 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 T44840, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42840 - Failing unit tests for ContentHandler
Failing unit tests for ContentHandler
Status: NEW
Product: MediaWiki
Classification: Unclassified
ContentHandler (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-07 21:54 UTC by Niklas Laxström
Modified: 2013-11-14 14:30 UTC (History)
1 user (show)

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


Attachments

Description Niklas Laxström 2012-12-07 21:54:56 UTC
twn:/www/dev.translatewiki.net/w/tests/phpunit (master)$ php phpunit.php --configuration /www/dev.translatewiki.net/w/tests/phpunit/suite.xml includes/content/ContentHandlerTest.php 
PHPUnit 3.7.8 by Sebastian Bergmann.

Configuration read from /www/dev.translatewiki.net/w/tests/phpunit/suite.xml

..............................................F..F........

Time: 1 second, Memory: 44.50Mb

There were 2 failures:

1) ContentHandlerTest::testMakeContent with data set #2 ('s:5:"hallo";', 'Dummy:Test', NULL, NULL, 'testing', 'hallo', false)
bad model id
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'testing'
+'text'

/www/dev.translatewiki.net/w/tests/phpunit/includes/content/ContentHandlerTest.php:245
/www/dev.translatewiki.net/w/tests/phpunit/MediaWikiTestCase.php:116
/www/dev.translatewiki.net/w/tests/phpunit/MediaWikiPHPUnitCommand.php:59
/www/dev.translatewiki.net/w/tests/phpunit/MediaWikiPHPUnitCommand.php:45

2) ContentHandlerTest::testMakeContent with data set #5 ('s:5:"hallo";', 'Dummy:Test', NULL, 'testing', 'testing', 'hallo', false)
ContentHandler::makeContent failed unexpectedly: Format testing is not supported for content model text

/www/dev.translatewiki.net/w/tests/phpunit/includes/content/ContentHandlerTest.php:248
/www/dev.translatewiki.net/w/tests/phpunit/MediaWikiTestCase.php:116
/www/dev.translatewiki.net/w/tests/phpunit/MediaWikiPHPUnitCommand.php:59
/www/dev.translatewiki.net/w/tests/phpunit/MediaWikiPHPUnitCommand.php:45

FAILURES!
Tests: 58, Assertions: 71, Failures: 2.

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


Navigation
Links