Fix MWNamespaceTest::testGetTalkExceptions()
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 14 May 2011 12:01:08 +0000 (12:01 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 14 May 2011 12:01:08 +0000 (12:01 +0000)
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

index c5da983..c3e5507 100644 (file)
@@ -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 ) );
        }
 
        /**