| Index: trunk/phase3/tests/phpunit/includes/MWNamespaceTest.php |
| — | — | @@ -271,7 +271,14 @@ |
| 272 | 272 | $this->assertFalse( MWNamespace::hasSubpages( NS_SPECIAL ) ); |
| 273 | 273 | |
| 274 | 274 | // namespaces without subpages |
| 275 | | - $this->assertFalse( MWNamespace::hasSubpages( NS_MAIN ) ); |
| | 275 | + global $wgNamespacesWithSubpages; |
| | 276 | + if( array_key_exists( NS_MAIN, $wgNamespacesWithSubpages ) |
| | 277 | + && $wgNamespacesWithSubpages[NS_MAIN] === true |
| | 278 | + ) { |
| | 279 | + $this->markTestSkipped( "Main namespace has subpages enabled" ); |
| | 280 | + } else { |
| | 281 | + $this->assertFalse( MWNamespace::hasSubpages( NS_MAIN ) ); |
| | 282 | + } |
| 276 | 283 | |
| 277 | 284 | // Some namespaces with subpages |
| 278 | 285 | $this->assertTrue( MWNamespace::hasSubpages( NS_TALK ) ); |