mediawiki-extensions-PageIm.../tests/phpunit
Kunal Mehta 34b0dd5ff6 Unbreak test that only worked by accident, and fails on PHP 7.2
`$leadImages || $images` will return a boolean, it doesn't work like
JavaScript or Python. Use `?:` to implement what was wanted.

This only worked because `count( true ) === 1`. Using assertCount()
would have caught it also.

Change-Id: I11357b23ad1124ed96d863872014cdca7c59e284
2018-04-13 22:25:26 -07:00
..
ApiQueryPageImagesProxyMock.php Fix remaining php sniffs 2018-03-05 18:49:11 +01:00
ApiQueryPageImagesTest.php Fix remaining php sniffs 2018-03-05 18:49:11 +01:00
LinksUpdateHookHandlerTest.php Unbreak test that only worked by accident, and fails on PHP 7.2 2018-04-13 22:25:26 -07:00
PageImagesTest.php Properly specify method that will be mocked 2018-04-13 22:20:17 -07:00