Merge "Fix wrong @return type hints in Language::tsTo… methods"
[lhc/web/wiklou.git] / tests / phpunit / includes / config / ConfigFactoryTest.php
index 611d304..2288507 100644 (file)
@@ -43,4 +43,15 @@ class ConfigFactoryTest extends MediaWikiTestCase {
                $this->setExpectedException( 'UnexpectedValueException' );
                $factory->makeConfig( 'unittest' );
        }
+
+       /**
+        * @covers ConfigFactory::getDefaultInstance
+        */
+       public function testGetDefaultInstance() {
+               $factory = ConfigFactory::getDefaultInstance();
+               $this->assertInstanceOf( 'Config', $factory->makeConfig( 'main' ) );
+
+               $this->setExpectedException( 'ConfigException' );
+               $factory->makeConfig( 'xyzzy' );
+       }
 }