Add unit tests for ChangeTags::modifyDisplayQuery()
authorRoan Kattouw <roan.kattouw@gmail.com>
Sat, 15 Jul 2017 02:39:49 +0000 (19:39 -0700)
committerCatrope <roan@wikimedia.org>
Mon, 24 Jul 2017 23:54:07 +0000 (23:54 +0000)
commit42383f8faf08f6184ca9d455b3bd8469beed26b0
tree2cf2c762bbf9ce545ae9e3ddcc61a21bcefa4b52
parent2a04f2dbf9dce34fed578d996f9a780c5633bc0d
Add unit tests for ChangeTags::modifyDisplayQuery()

The rest of ChangeTags.php should have tests too, but this is a start.

Also fix up ChangeTags::modifyDisplayQuery() to work when strings
are passed for certain parameters, which its documentation claims
it supports but which leads to errors in practice. Normalize
these parameters to arrays.

Change-Id: I2fe61bcb716a369a14a45c2843817a6557d44f7c
includes/changetags/ChangeTags.php
tests/phpunit/includes/changetags/ChangeTagsTest.php [new file with mode: 0644]