Merge "Remove parameter 'options' from hook 'SkinEditSectionLinks'"
[lhc/web/wiklou.git] / tests / phpunit / includes / editpage / TextboxBuilderTest.php
index b9bf5b9..a63521a 100644 (file)
@@ -112,7 +112,12 @@ class TextboxBuilderTest extends MediaWikiTestCase {
                        [
                                [ 'mw-new-classname' ],
                                [ 'class' => 'mw-existing-classname' ],
-                               [ 'class' => 'mw-new-classname mw-existing-classname' ],
+                               [ 'class' => 'mw-existing-classname mw-new-classname' ],
+                       ],
+                       [
+                               [ 'mw-new-classname', 'mw-existing-classname' ],
+                               [ 'class' => 'mw-existing-classname' ],
+                               [ 'class' => 'mw-existing-classname mw-new-classname' ],
                        ],
                ];
        }
@@ -172,7 +177,7 @@ class TextboxBuilderTest extends MediaWikiTestCase {
                $expected
        ) {
                $this->setMwGlobals( [
-                       // set to trick MWNamespace::getRestrictionLevels
+                       // set to trick NamespaceInfo::getRestrictionLevels
                        'wgRestrictionLevels' => $restrictionLevels
                ] );