Move WatchedItem logic to WatchedItemStore
authoraddshore <addshorewiki@gmail.com>
Mon, 1 Feb 2016 11:53:01 +0000 (12:53 +0100)
committeraddshore <addshorewiki@gmail.com>
Tue, 8 Mar 2016 15:41:22 +0000 (15:41 +0000)
commitfee0afdc8ad2807380436a027827ad5b316b68b3
tree781d0c3a617ab496e55ef1c3856f9a89b4495c68
parent0708470862f0caa1ac1ff2b30ef70c35f013d900
Move WatchedItem logic to WatchedItemStore

This also removes assumptions that when a page
in one Namespace should be watched / removed
that the page in the talk / subject ns for the
page should have the same action applied

This should maintain all backward compatability
for the WatchedItem class

This also includes tests written by:
 - WMDE-leszek
 - Addshore

Bug: T127956
Change-Id: Iad9abafe4417bb479151a3bfbee6e1c78a3afe3c
18 files changed:
RELEASE-NOTES-1.27
includes/EditPage.php
includes/MovePage.php
includes/Title.php
includes/WatchedItem.php
includes/WatchedItemStore.php
includes/actions/RollbackAction.php
includes/actions/WatchAction.php
includes/api/ApiBase.php
includes/session/SessionManager.php
includes/specials/SpecialBlock.php
includes/specials/SpecialUserlogin.php
includes/upload/UploadBase.php
includes/user/User.php
tests/phpunit/includes/WatchedItemStoreIntegrationTest.php [new file with mode: 0644]
tests/phpunit/includes/WatchedItemStoreTest.php [deleted file]
tests/phpunit/includes/WatchedItemStoreUnitTest.php [new file with mode: 0644]
tests/phpunit/includes/WatchedItemUnitTest.php [new file with mode: 0644]