Page MenuHomePhabricator

MWNamespaceTest::testGetContentNamespaces depends on default $wgContentNamespaces
Closed, ResolvedPublic

Description

  1. 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.


Version: 1.20.x
Severity: enhancement

Details

Reference
bz40488

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:09 AM
bzimport set Reference to bz40488.

The test suite should provide sane values for $wgContentNamespaces