resourceloader: Add test for non-empty user module in scripts-only queue
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 5 Mar 2018 22:41:29 +0000 (14:41 -0800)
committerLegoktm <legoktm@member.fsf.org>
Mon, 5 Mar 2018 23:37:31 +0000 (23:37 +0000)
commitb6dd3b8f614886f4f017b2eb70544876211bf3ec
treec8b9957c1086c99036ccf9b4040227b02d74a50e
parentf6fd74d4b0034e951717421b4a469c5bde10f368
resourceloader: Add test for non-empty user module in scripts-only queue

The getData() tests did have a test case for a 'user' group module with
isKnownEmpty in the script-only queue, but not yet a non-empty one.

The makeLoad() tests did have both already. Arguably the makeLoad()
tests are higher level and observe its behaviour already (outputting
a script tag means 'loading', outputting nothing means 'ready'),
but adding it to the getData() tests for consistency.

Bug: T188689
Change-Id: I842febf996ba8bb0ea25b5ca3b5ac4503db87376
tests/phpunit/includes/resourceloader/ResourceLoaderClientHtmlTest.php