API: Add test case for ApiCSPReportTest
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 19 Jul 2019 21:33:31 +0000 (22:33 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 19 Jul 2019 21:58:39 +0000 (22:58 +0100)
commit4b01004a1f1557fa7d533a10cf3d45f1f5a84856
tree9669da9de673f19f4f3b3cc74d11a441b9fcc8eb
parentaf36f92ad605b7bbbaad3b4c2332cfd0f566f518
API: Add test case for ApiCSPReportTest

Covers the basic functioning of the class, as well as the specific
behaviours introduced or changed by 5f34361759 and 0ca1b8a0e621c9.

Also includes a (bad) expectation for 'user_id' (bool instead of string),
which is a bug caused by 5f34361759 that the next commit will fix.

Change-Id: I2c57c813b8a31e51a61778951227ccbd1217a547
tests/phpunit/includes/api/ApiCSPReportTest.php [new file with mode: 0644]