Last modified: 2012-10-29 23:27:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42488, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40488 - MWNamespaceTest::testGetContentNamespaces depends on default $wgContentNamespaces
MWNamespaceTest::testGetContentNamespaces depends on default $wgContentNamesp...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
1.20.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Krinkle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-24 21:48 UTC by Niklas Laxström
Modified: 2012-10-29 23:27 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Niklas Laxström 2012-09-24 21:48:42 UTC
35) MWNamespaceTest::testGetContentNamespaces
$wgContentNamespaces is an array with only NS_MAIN by default
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => 0
+    1 => 8
+    2 => 1102
+    3 => 1200
+    4 => 1202
+    5 => 1204
+    6 => 1206
+    7 => 1208
+    8 => 1210
+    9 => 1212
+    10 => 1214
+    11 => 1216
+    12 => 1218
+    13 => 1220
+    14 => 1222
+    15 => 1224
+    16 => 1226
+    17 => 1228
+    18 => 1230
+    19 => 1232
+    20 => 1234
+    21 => 1236
+    22 => 1238
+    23 => 1240
+    24 => 1242
+    25 => 1244
+    26 => 1246
 )

I'm not sure what this test is testing, but it should not depend on wiki configuration.
Comment 1 Antoine "hashar" Musso (WMF) 2012-09-25 07:40:23 UTC
The test suite should provide sane values for $wgContentNamespaces
Comment 2 Niklas Laxström 2012-10-29 15:21:03 UTC
These all pass for me now.
Comment 3 Krinkle 2012-10-29 23:27:35 UTC
Fixed in 181c7cdc8e9b019ff3c7cfa40452a7791be98dff.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links