wiki.techinc.nl/tests/phpunit/includes/block
Func 7f74a2e50c Clean up tests that misused the parameters of assertSame/Equals
Expected value is the first parameter to assertSame() or assertEquals().
And turn to use assertCount() for some assertions aginst count of array.

Based on code search `assert(?:Same|Equals)\(.+,.+expected` and I look
through files roughly, so some assertions that don't contains 'expected'
are also fixed. In the meantime, some assertions that I am not clear
about are not touched.

Change-Id: I75798b60d29fd19b33f4fdf34ed3c788db420d01
2022-02-08 07:21:10 +00:00
..
Restriction tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
BlockErrorFormatterTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
BlockManagerTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
BlockRestrictionStoreTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
CompositeBlockTest.php Clean up tests that misused the parameters of assertSame/Equals 2022-02-08 07:21:10 +00:00
DatabaseBlockTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00