aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/changes/TestRecentChangesHelper.php
Commit message (Collapse)AuthorAgeFilesLines
* recentchanges: Move rcfeed/ to includes/recentchanges/RCFeed/Timo Tijhof2024-08-291-173/+0
| | | | | | | | | | | | | | | | It is part of the component at https://phabricator.wikimedia.org/tag/mediawiki-recent-changes/ and https://www.mediawiki.org/wiki/Developers/Maintainers and since Ifac20da51f7e809f under the same "Recent changes" doc group. The Maintainers list oddly enough lists only rcfeed and completely forgets the majority of it under /includes/changes (or now, /includes/recentchanges). Bug: T364652 Change-Id: I94e6705672c1e2821bdc726aa7a383d9e7c1f7b5
* Namespace includes/contextJames D. Forrester2024-02-081-0/+1
| | | | | Bug: T353458 Change-Id: I4dbef138fd0110c14c70214282519189d70c94fb
* Namespace User under \MediaWiki\UserJames D. Forrester2023-09-191-0/+1
| | | | | Bug: T166010 Change-Id: I7257302b485588af31384d4f7fc8e30551f161f1
* Reorg: Namespace the Title classJames D. Forrester2023-03-021-0/+1
| | | | | | | | | | | | | | | | | | | This is moderately messy. Process was principally: * xargs rg --files-with-matches '^use Title;' | grep 'php$' | \ xargs -P 1 -n 1 sed -i -z 's/use Title;/use MediaWiki\\Title\\Title;/1' * rg --files-without-match 'MediaWiki\\Title\\Title;' . | grep 'php$' | \ xargs rg --files-with-matches 'Title\b' | \ xargs -P 1 -n 1 sed -i -z 's/\nuse /\nuse MediaWiki\\Title\\Title;\nuse /1' * composer fix Then manual fix-ups for a few files that don't have any use statements. Bug: T166010 Follows-Up: Ia5d8cb759dc3bc9e9bbe217d0fb109e2f8c4101a Change-Id: If8fc9d0d95fc1a114021e282a706fc3e7da3524b
* tests: Use Title::makeTitle instead of Title::newFromTextUmherirrender2022-07-061-1/+1
| | | | | | Avoid parsing known titles in tests to improve performance Change-Id: Ibfccfe696f0b8bfda0b99abae324e60bbecef7d8
* Add `comment` table and code to start using itBrad Jorsch2017-08-301-0/+4
| | | | | | | A subsequent patch will remove the old columns. Bug: T166732 Change-Id: Ic3a434c061ed6e443ea072bc62dda09acbeeed7f
* Remove empty lines at begin of function, if, foreach, switchUmherirrender2017-07-011-3/+0
| | | | | | Organize phpcs.xml a bit Change-Id: Ifb767729b481b4b686e6d6444cf48b1f580cc478
* Remove unused imports from test classesThiemo Mättig2017-01-101-1/+1
| | | | | | | Validating this should be as simple as it can be: if the tests run, this change should be fine. :-) Change-Id: I8e4a3dfc83fdc9b8c8d7f5bbd067e088ebd2133d
* Move Linker::getLinkColour() into LinkRendererKunal Mehta2016-05-271-3/+1
| | | | | | | | | | | * Rename to getLinkClasses() since it's not really returning colours, but CSS classes. * Dependency inject LinkCache into LinkRenderer * Update all callers of Linker::getLinkColour(), and mark it as deprecated (no other uses in Gerrit) * Update a bunch of tests for new dependency Change-Id: Id178e2dcc60b833ce2dbad4920896b93cabba1bf
* ChangesList: Use LinkRenderer instead of Linker::link()Kunal Mehta2016-05-261-1/+6
| | | | Change-Id: Iae32a9e365aad268d2671df6a0b916e4d9c0a801
* phpunit: Abstract user-lang override in MediaWikiTestCaseTimo Tijhof2016-03-091-1/+1
| | | | | | | | | | | Removed redundant set up in these classes (same as their paren class MediaWikiLangTestCase does already). * BlockTest * ExportTest * MWTimestampTest * TitlePermissionTest Change-Id: I28d18cb797bb249981727b02dffce4f0d8682b02
* Convert all array() syntax to []Kunal Mehta2016-02-171-13/+13
| | | | | | | | | | Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
* Enable users to watch category membership changes #2addshore2015-10-201-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is part of a chain that reverts: e412ff5ecc900991cce4f99b7a069f625a5694b3. NOTE: - The feature is disabled by default - User settings default to hiding changes - T109707 Touching a file on wikisource adds and removes it from a category... Even when page has no changes.... WTF? See linked issue, marked as stalled with a possible way forward for this patch. @see https://gerrit.wikimedia.org/r/#/c/235467/ Changes since version 1: - T109604 - Page names in comment are no longer url encoded / have _'s - T109638 & T110338 - Reserved username now used when we can't determine a username for the change (we could perhaps set the user and id to be blank in the RC table, but who knows what this might do) - T109688 - History links are now disabled in RC.... (could be fine for the introduction and worked on more in the future) - Categorization changes are now always patrolled - Touching on T109672 in this change emails will never be sent regarding categorization changes. (this can of course be changed in a followup) - Added $wgRCWatchCategoryMembership defaulting to true for enabling / disabling the feature - T109700 - for cases when no revision was retrieved for a category change set the bot flag to true. This means all changes caused by parser functions & Lua will be marked as bot, as will changes that cant find their revision due to slave lag.. Bug: T9148 Bug: T109604 Bug: T109638 Bug: T109688 Bug: T109700 Bug: T110338 Bug: T110340 Change-Id: I51c2c1254de862f24a26ef9dbbf027c6c83e9063
* Fix Generic.Files.LineLength phpcs check in files under phpunit/includesAmir E. Aharoni2015-10-031-2/+2
| | | | | Bug: T102614 Change-Id: Iee3df5f064f595ecebe8210cc936bc3d20a122c9
* Revert "Enable users to watch category membership changes"CSteipp2015-08-201-30/+0
| | | | | | | This reverts commit f6879ea16edf008eb012bd4dbe133e2ba4b9338f. Bug: T109638 Change-Id: I770d8d33a4cff3829bdea9a4df24de209cbe691b
* Enable users to watch category membership changesKai_WMDE2015-08-131-0/+30
| | | | | Bug: T9148 Change-Id: I5a89d8f19804b1120f4c755d834e2da6ca12ceae
* tests: Clean up file headersTimo Tijhof2015-04-011-1/+0
| | | | | | | | | | * Remove redundant @licence/@license from test suite files. They already have full licence headers. And @licence raises a warning in Doxygen. * Fix weird messes of comments inside comments and other things. Change-Id: I38da8ca76330f72b8dc22b0ecf1ea69d5ea55ede
* Use qqx language for OldChangesListTestaude2014-09-181-0/+3
| | | | Change-Id: Icda9d541ea0fc929ab8b9274bbe870eb6278d2ed
* Add $logAction param for test recent changes helperaude2014-08-291-2/+2
| | | | | | to allow testing with various types of log actions Change-Id: Idc78c964a68e98239265aaaa9e7913d477a3298f
* Improvements to RCCacheEntryFactoryTest and helper classaude2014-07-251-15/+26
| | | | | | | * pass User as argument when making the test context * override rc_source when applicable Change-Id: Id2094978d9f5ba962e76de7df29638e15a7547c3
* Split code for making test RecentChange objects into own classaude2014-07-251-0/+123
this code is useful for adding tests of the other changes classes and better not to duplicate it. Change-Id: I464b4fbf39a0f47cb8911378b731cdd1672ecd86