https://bugzilla.wikimedia.org/show_bug.cgi?id=42840
Web browser: ---
Bug ID: 42840
Summary: Failing unit tests for ContentHandler
Product: MediaWiki
Version: 1.21-git
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: ContentHandler
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l