Index: trunk/phase3/tests/phpunit/includes/MWNamespaceTest.php |
— | — | @@ -191,8 +191,19 @@ |
192 | 192 | $this->assertTrue( MWNamespace::subjectEquals( NS_MAIN, NS_TALK ) ); |
193 | 193 | $this->assertTrue( MWNamespace::subjectEquals( NS_USER, NS_USER_TALK ) ); |
194 | 194 | $this->assertFalse( MWNamespace::subjectEquals( NS_PROJECT, NS_TEMPLATE ) ); |
| 195 | + $this->assertFalse( MWNamespace::subjectEquals( NS_SPECIAL, NS_MAIN ) ); |
195 | 196 | } |
196 | 197 | |
| 198 | + public function testSpecialAndMediaAreDifferentSubjects() { |
| 199 | + $this->assertFalse( MWNamespace::subjectEquals( |
| 200 | + NS_MEDIA, NS_SPECIAL |
| 201 | + ), "NS_MEDIA and NS_SPECIAL are different subhects" ); |
| 202 | + $this->assertFalse( MWNamespace::subjectEquals( |
| 203 | + NS_SPECIAL, NS_MEDIA |
| 204 | + ), "NS_SPECIAL and NS_MEDIA are different subhects" ); |
| 205 | + |
| 206 | + } |
| 207 | + |
197 | 208 | /** |
198 | 209 | * @todo Implement testGetCanonicalNamespaces(). |
199 | 210 | */ |