From 3ec5811451a628b6b9418ef9e4806436c00be48d Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 14 May 2011 12:01:08 +0000 Subject: [PATCH] Fix MWNamespaceTest::testGetTalkExceptions() It was actually testing for associated. Thanks copy & paste for this bug. Test result: $ php phpunit.php -c suite.xml includes/MWNamespaceTest.php .........IIIII.......... Tests: 24, Assertions: 99, Incomplete: 5. --- tests/phpunit/includes/MWNamespaceTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/includes/MWNamespaceTest.php b/tests/phpunit/includes/MWNamespaceTest.php index c5da983111..c3e5507cf1 100644 --- a/tests/phpunit/includes/MWNamespaceTest.php +++ b/tests/phpunit/includes/MWNamespaceTest.php @@ -96,8 +96,8 @@ class MWNamespaceTest extends PHPUnit_Framework_TestCase { * @expectedException MWException */ public function testGetTalkExceptions() { - $this->assertNull( MWNamespace::getAssociated( NS_MEDIA ) ); - $this->assertNull( MWNamespace::getAssociated( NS_SPECIAL ) ); + $this->assertNull( MWNamespace::getTalk( NS_MEDIA ) ); + $this->assertNull( MWNamespace::getTalk( NS_SPECIAL ) ); } /** -- 2.20.1