Problem
extensions/ArticlePlaceholder/tests/phpunit/includes/specials/SpecialCreateTopicPageTest.php has PHPUnit test failures when run in a suite with extensions/FileImporter/tests/phpunit/Html/ChangeFileInfoFormTest.php and extensions/Flow/tests/phpunit/Api/ApiFlowEditTopicSummaryTest.php. 1 test fails:
1) ArticlePlaceholder\Tests\Specials\SpecialCreateTopicPageTest::testExecute with data set #1 (true, '') OOUI\Exception: OOUI\Theme::singleton was called with no singleton theme set. in /workspace/src/vendor/oojs/oojs-ui/php/Theme.php:31 Stack trace: #0 /workspace/src/vendor/oojs/oojs-ui/php/Element.php(259): OOUI\Theme::singleton() #1 /workspace/src/vendor/oojs/oojs-ui/php/Tag.php(510): OOUI\Element->toString() #2 [internal function]: OOUI\Tag->__toString()
Steps to reproduce
In a Mediawiki checkout with the ArticlePlaceholder, Flow and FileImporter extensions installed.
- Copy phpunit.dist.xml to phpunit.xml
- Add a test suite with the following two tests:
<testsuite name="failing_group"> <file>extensions/Flow/tests/phpunit/Api/ApiFlowEditTopicSummaryTest.php</file> <file>extensions/FileImporter/tests/phpunit/Html/ChangeFileInfoFormTest.php</file> <file>extensions/ArticlePlaceholder/tests/phpunit/includes/specials/SpecialCreateTopicPageTest.php</file> </testsuite>
- Run the named test suite:
mw docker mediawiki exec -- composer run phpunit:entrypoint -- --testsuite failing_group
Observed behaviour
The test run fails
Expected behaviour
The tests pass