mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 16:04:35 +00:00
0dbff3bf16
In Echo tests/NotificationFormatterTest.php there is a test that ends up invoking the Linker to create full URL for Main_page and pass it a fragment. Title::newMainPage() is really Title::newFromText('Main_Page') which is cached. Whenever the fragment is set, it stuck in the cache entry and later call to Title::newMainPage() yields a Title object which has the fragment. That cause Scribunto tests (at least) to fail when Echo tests are run before it because Scribunto tests expect a Main_Page title without a fragment. The ugly workaround is to have the Echo test to reset the fragment. We could clear up the Title cache between tests though. Bug: 68646 Change-Id: I625492fc8bf0dbd6e10275c3a728f5c1f85768c8 |
||
---|---|---|
api | ||
controller | ||
db_patches | ||
formatters | ||
i18n | ||
includes | ||
jobs | ||
maintenance | ||
model | ||
modules | ||
special | ||
tests | ||
.gitignore | ||
.gitreview | ||
.jshintrc | ||
COPYING | ||
Echo.alias.php | ||
Echo.i18n.php | ||
Echo.php | ||
echo.sql | ||
Hooks.php | ||
Notifier.php |