resourceloader: Simplify makeLoaderStateScript and makeLoaderSourcesScript
[lhc/web/wiklou.git] / tests / phpunit / includes / resourceloader / ResourceLoaderTest.php
index e728ad5..99f4347 100644 (file)
@@ -626,12 +626,6 @@ END
                $this->assertEquals(
                        'mw.loader.addSource({
     "local": "/w/load.php"
-});',
-                       ResourceLoader::makeLoaderSourcesScript( $context, 'local', '/w/load.php' )
-               );
-               $this->assertEquals(
-                       'mw.loader.addSource({
-    "local": "/w/load.php"
 });',
                        ResourceLoader::makeLoaderSourcesScript( $context, [ 'local' => '/w/load.php' ] )
                );
@@ -727,7 +721,7 @@ END
                ] );
                $context = $this->getResourceLoaderContext( [], $rl );
 
-               $this->assertEquals(
+               $this->assertSame(
                        '',
                        $rl->getCombinedVersion( $context, [] ),
                        'empty list'