https://bugzilla.wikimedia.org/show_bug.cgi?id=25424

           Summary: Deprecated SpecialPage::addPage() interferes with
                    initialization in unit tests
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Unit tests
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: br...@pobox.com
                CC: innocentkil...@gmail.com


Found when running phpunit tests with ArticleComments extension on, which uses
SpecialPage::addPage() instead of directly adding a class to $wgSpecialPages.

$ make destructive
phpunit --configuration
/Users/brion/pages/trunk/maintenance/tests/phpunit/suite.xml
Warning: array_merge(): Argument #2 is not an array in
/Library/WebServer/Documents/trunk/includes/SpecialPage.php on line 233

SpecialPage::addPage() calls SpecialPage::initList() which attempts to merge in
data from $wgSpecialPages. This was set to NULL here, which is unexpected as
the default value in DefaultSettings.php is array().

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to