Simplify ApiQueryRecentChangesIntegrationTest
authorThiemo Mättig <thiemo.maettig@wikimedia.de>
Wed, 27 Dec 2017 12:23:17 +0000 (13:23 +0100)
committerThiemo Mättig <thiemo.maettig@wikimedia.de>
Wed, 27 Dec 2017 12:23:17 +0000 (13:23 +0100)
commite02e140e2d645b93d39ff0bb67618a89129f85ad
tree85542b028368c5315e177cb57af3a41891a358e2
parentb29d4e2789d1efd9005180edf2bb02681c94e022
Simplify ApiQueryRecentChangesIntegrationTest

This patch does two major things to the newly introduced
ApiQueryRecentChangesIntegrationTest:

* It rips the confusingly complicated assertArraySubsetsEqual appart.

* It removes all wikitext content. Note that no assertion is done on this
content (not even in the test that is about adding a category). The tests
run just fine with automatically generated content. I had to introduce the
$i counter to make sure consecutive edits are done with different content.
Otherwise the later edit is not stored.

Change-Id: Iae585be86f3fd9bff7d2b4b7b218d5b0b4258603
tests/phpunit/includes/api/ApiQueryRecentChangesIntegrationTest.php