wiki.techinc.nl/tests/phpunit/includes/site
Thiemo Kreuz 9c57ea2b7f Replace complicated assertions with assertIsString() and such
This patch tries to make assertions in tests more readable by using more
self-documenting assertions as provided by modern PHPUnit versions. Among
a few others, these two main changes are done:

* I found a lot of assertions with the expected value being the *second*
parameter. I did not changed all of them. Only some that can be replaced
with assertNull() and such.

* I try to replace all `assertTrue( is_…() )` with dedicated assertions.

Change-Id: I1fc72188fbd0edacf13886e7f9a9eacbd85f13c2
2020-01-28 19:17:58 +00:00
..
CachingSiteStoreTest.php tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
DBSiteStoreTest.php Replace complicated assertions with assertIsString() and such 2020-01-28 19:17:58 +00:00
HashSiteStoreTest.php Unset all globals unneeded for unit tests, assert correct directory 2019-07-09 14:09:29 -04:00
MediaWikiPageNameNormalizerTest.php Manual fix of the remaining assertInternalType & Co. 2019-12-15 00:20:10 +00:00
MediaWikiSiteTest.php Fix most PHPUnit 8 compat issues in DBless tests 2019-12-15 00:24:21 +00:00
SiteExporterTest.php Stop using assertContains with string haystack 2019-12-15 00:22:44 +00:00
SiteImporterTest.php Replace setExpectedException with single arg 2019-10-05 17:39:46 +02:00
SiteImporterTest.xml phpunit: Repair GLOBALS reset in MediaWikiUnitTestCase 2019-09-02 20:58:34 +01:00
SiteListTest.php Replace complicated assertions with assertIsString() and such 2020-01-28 19:17:58 +00:00
SiteTest.php Fix most PHPUnit 8 compat issues in DBless tests 2019-12-15 00:24:21 +00:00
TestSites.php Move phpunit @group from file comment to class comment 2018-03-10 11:48:28 +01:00