From 98d2168ffb69c7573e7ed073a651b143a463d97a Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 24 Aug 2011 19:52:24 +0000 Subject: [PATCH] Fix testGetTalkExceptions from r82577 --- tests/phpunit/includes/MWNamespaceTest.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/includes/MWNamespaceTest.php b/tests/phpunit/includes/MWNamespaceTest.php index fef746f02c..8b36fe5ecf 100644 --- a/tests/phpunit/includes/MWNamespaceTest.php +++ b/tests/phpunit/includes/MWNamespaceTest.php @@ -86,11 +86,19 @@ class MWNamespaceTest extends MediaWikiTestCase { /** * Exceptions with getTalk() - * NS_MEDIA and NS_SPECIAL do not have talk pages. MediaWiki raise an exception for them. + * NS_MEDIA does not have talk pages. MediaWiki raise an exception for them. * @expectedException MWException */ - public function testGetTalkExceptions() { + public function testGetTalkExceptionsForNsMedia() { $this->assertNull( MWNamespace::getTalk( NS_MEDIA ) ); + } + + /** + * Exceptions with getTalk() + * NS_SPECIAL does not have talk pages. MediaWiki raise an exception for them. + * @expectedException MWException + */ + public function testGetTalkExceptionsForNsSpecial() { $this->assertNull( MWNamespace::getTalk( NS_SPECIAL ) ); } @@ -114,6 +122,7 @@ class MWNamespaceTest extends MediaWikiTestCase { public function testGetAssociatedExceptionsForNsMedia() { $this->assertNull( MWNamespace::getAssociated( NS_MEDIA ) ); } + /** * @expectedException MWException */ -- 2.20.1