aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/resourceloader/ResourceLoaderStartUpModuleTest.php
diff options
context:
space:
mode:
authorTimo Tijhof <krinklemail@gmail.com>2016-08-24 18:50:30 -0700
committerTimo Tijhof <krinklemail@gmail.com>2016-08-24 18:56:20 -0700
commit7dbad8562c68d587244c1663279b602028511a92 (patch)
treec2fdc32a7897b1ada4d43980c19f592a2aef94da /tests/phpunit/includes/resourceloader/ResourceLoaderStartUpModuleTest.php
parent3ea818c42ba9f2115a4dd5f528a40d44e2e0afd8 (diff)
downloadmediawikicore-7dbad8562c68d587244c1663279b602028511a92.tar.gz
mediawikicore-7dbad8562c68d587244c1663279b602028511a92.zip
resourceloader: Improve coverage in ResourceLoaderTest.php
* Fix signature of makeLoaderSourcesScript() to match the change in behaviour since e103ba265. * Consistently order providers before the test. * Simplify testRegisterValid() and remove needless @depends. * Remove unused private method stripNoflip(). Coverage: * Expand test coverage for register(). * Add tests for getModuleNames(). * Add tests for getModule(). * Expand test coverage for addSource(). (case of invalid array) * Expand test coverage for makeLoaderImplementScript(). (case of unwrapped user script, and case of invalid scripts) * Add tests for makeLoaderSourcesScript(). Change-Id: Ibca3e486fcd3664f171f135327a0f340ee6da9ee
Diffstat (limited to 'tests/phpunit/includes/resourceloader/ResourceLoaderStartUpModuleTest.php')
-rw-r--r--tests/phpunit/includes/resourceloader/ResourceLoaderStartUpModuleTest.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/phpunit/includes/resourceloader/ResourceLoaderStartUpModuleTest.php b/tests/phpunit/includes/resourceloader/ResourceLoaderStartUpModuleTest.php
index 9b62b82dee2d..ab1323ecdc01 100644
--- a/tests/phpunit/includes/resourceloader/ResourceLoaderStartUpModuleTest.php
+++ b/tests/phpunit/includes/resourceloader/ResourceLoaderStartUpModuleTest.php
@@ -310,7 +310,6 @@ mw.loader.register( [
* @dataProvider provideGetModuleRegistrations
* @covers ResourceLoaderStartUpModule::compileUnresolvedDependencies
* @covers ResourceLoaderStartUpModule::getModuleRegistrations
- * @covers ResourceLoader::makeLoaderSourcesScript
* @covers ResourceLoader::makeLoaderRegisterScript
*/
public function testGetModuleRegistrations( $case ) {