WatchedItemStore::setNotificationTimestampsForUser(): Allow clearing timestamp
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 16 Dec 2016 19:31:24 +0000 (14:31 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 16 Dec 2016 19:31:24 +0000 (14:31 -0500)
commit05ca28bba0e65e17428d274043a8b765d08583eb
tree46268f6098c2f65254ae26a1d80dea0607bc3afa
parentbf3a60743d0ff7cc536c71c95ecad65e7edc9717
WatchedItemStore::setNotificationTimestampsForUser(): Allow clearing timestamp

ApiSetNotificationTimestamp expects to be able to clear the timestamp by
passing null. Allow that to work as expected.

Bug: T153482
Change-Id: Ibf4ba56f0abd3b72283f7a33e4665d5999a70b82
includes/WatchedItemStore.php
tests/phpunit/includes/WatchedItemStoreUnitTest.php