Merge "Revert "test: coverage for wfWikiID()""

This commit is contained in:
Chad 2014-07-29 21:23:17 +00:00 committed by Gerrit Code Review
commit 977b5ea0e0

View file

@ -1,22 +0,0 @@
<?php
/**
* @group GlobalFunctions
* @covers ::wfWikiID
*/
class WfWikiId extends MediaWikiTestCase {
public function testReturnsProperDbName() {
$this->setMwGlobals( 'wgDBname', 'known_db_name' );
$this->assertEquals('known_db_name', wfWikiID() );
}
public function testHonorsDatabasePrefix() {
$this->setMwGlobals( array(
'wgDBname' => 'known_db_name',
'wgDBprefix' => 'prefix',
));
# Note: prefix is actually a suffix in wfWikiID()
$this->assertEquals('known_db_name-prefix', wfWikiID() );
}
}