Go to file
Antoine Musso 0dbff3bf16 Clear up cached Main_page title in test
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
2014-07-29 13:56:28 +02:00
api Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00
controller Catch catchable fatal errors when formatting echo notifications 2014-02-06 15:06:54 -08:00
db_patches SQLite compatibility for Echo database patches 2013-10-15 20:56:24 +00:00
formatters Fix incorrect variable name 2014-07-25 02:21:18 +00:00
i18n Localisation updates from https://translatewiki.net. 2014-07-28 21:21:50 +02:00
includes Remove EchoEvent::updateExtra, MWEchoBackend::updateEventExtra 2014-07-13 22:53:57 +00:00
jobs Adding Echo jobs to deferred update along with master wait 2013-09-04 17:32:54 -07:00
maintenance Remove invalid maintenance scripts 2013-07-03 12:09:45 -07:00
model Remove EchoEvent::updateExtra, MWEchoBackend::updateEventExtra 2014-07-13 22:53:57 +00:00
modules New hooks for external integration to notification intiialization 2014-07-21 16:08:56 -07:00
special Automatically mark invalid notifications as read upon request 2014-02-05 16:53:04 -08:00
tests Clear up cached Main_page title in test 2014-07-29 13:56:28 +02:00
.gitignore Add .gitignore 2012-05-21 01:34:55 +01:00
.gitreview Add .gitreview file 2012-04-28 01:26:21 +10:00
.jshintrc Add .jshintrc 2013-04-18 00:36:08 +02:00
COPYING Add COPYING 2014-01-24 16:00:24 -08:00
Echo.alias.php Localisation updates from https://translatewiki.net. 2014-06-16 19:49:36 +00:00
Echo.i18n.php Update i18n shim 2014-04-22 13:18:45 +00:00
Echo.php Add ParserTestTables hook handler 2014-06-25 18:06:09 -07:00
echo.sql Remove inappropiate executable flag on Echo.php and echo.sql 2013-07-18 17:19:05 +02:00
Hooks.php Fix: getUnitTest does not add test files 2014-07-02 15:52:18 +00:00
Notifier.php Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00