Add tests to ensure that retrieved actions match passed in restrictions
authorDavid Barratt <dbarratt@wikimedia.org>
Wed, 20 Feb 2019 03:18:14 +0000 (22:18 -0500)
committerDavid Barratt <dbarratt@wikimedia.org>
Wed, 27 Feb 2019 15:49:36 +0000 (10:49 -0500)
commit0e24c6a44d70697312ceda8dc333b41e993e1e4a
treec6b1a38909377eb2c793ba15b4445dfbe4d17273
parentd78efd2363f8e11562d792529de1f0dee2fbb6a1
Add tests to ensure that retrieved actions match passed in restrictions

This is a theoretical issue where a passed in restriction does not match the
retrieved actions. There are no actions like this in MediaWiki core or known
extensions, but since the possibility exists, tests should exist to prevent
the issue before it happens.

Bug: T213220
Change-Id: I58da016768a3ee958baa2a25b8177a9e667fa955
tests/phpunit/includes/TitlePermissionTest.php