From: Antoine Musso Date: Sat, 14 May 2011 12:01:08 +0000 (+0000) Subject: Fix MWNamespaceTest::testGetTalkExceptions() X-Git-Tag: 1.31.0-rc.0~30215 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=3ec5811451a628b6b9418ef9e4806436c00be48d;p=lhc%2Fweb%2Fwiklou.git 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. --- 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 ) ); } /**