/** * @covers MWNamespace::getSubjectNamespaces */ public function testGetSubjectNamespaces() { $subjectsNS = MWNamespace::getSubjectNamespaces(); $this->assertContains(NS_MAIN, $subjectsNS, "Talk namespaces should have NS_MAIN"); $this->assertNotContains(NS_TALK, $subjectsNS, "Talk namespaces should have NS_TALK"); $this->assertNotContains(NS_MEDIA, $subjectsNS, "Talk namespaces should not have NS_MEDIA"); $this->assertNotContains(NS_SPECIAL, $subjectsNS, "Talk namespaces should not have NS_SPECIAL"); }