Special:RC tests: ignore order when asserting conditions
authorStephane Bisson <sbisson@wikimedia.org>
Mon, 14 Nov 2016 17:47:41 +0000 (12:47 -0500)
committerSbisson <sbisson@wikimedia.org>
Thu, 24 Nov 2016 11:50:09 +0000 (11:50 +0000)
commita1ab58275465d8294b8abc766dbffc3339f16405
tree4e5725eb1862a1b7b29f390f2c3bc597a4912996
parent163282a24c6201b25eb0ecdf753ffa6ad689ed0f
Special:RC tests: ignore order when asserting conditions

Normalize condition object to ignore order and ignore the
following equivalent formats:

  $conds['column'] = 'value';
  $conds[] = "column = 'value'";

This makes the tests more resilient to minor refactoring
that doesn't affect functionality.

Change-Id: I440f230c81182694a952de801cb37b9ddbad5599
tests/phpunit/includes/specials/SpecialRecentchangesTest.php