dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Give name for oojs-ui i18n files"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
site
/
SiteSQLStoreTest.php
diff --git
a/tests/phpunit/includes/site/SiteSQLStoreTest.php
b/tests/phpunit/includes/site/SiteSQLStoreTest.php
index
cf652e9
..
6002c1a
100644
(file)
--- a/
tests/phpunit/includes/site/SiteSQLStoreTest.php
+++ b/
tests/phpunit/includes/site/SiteSQLStoreTest.php
@@
-32,6
+32,9
@@
*/
class SiteSQLStoreTest extends MediaWikiTestCase {
*/
class SiteSQLStoreTest extends MediaWikiTestCase {
+ /**
+ * @covers SiteSQLStore::getSites
+ */
public function testGetSites() {
$expectedSites = TestSites::getSites();
TestSites::insertIntoDb();
public function testGetSites() {
$expectedSites = TestSites::getSites();
TestSites::insertIntoDb();
@@
-56,6
+59,9
@@
class SiteSQLStoreTest extends MediaWikiTestCase {
}
}
}
}
+ /**
+ * @covers SiteSQLStore::saveSites
+ */
public function testSaveSites() {
$store = SiteSQLStore::newInstance();
public function testSaveSites() {
$store = SiteSQLStore::newInstance();
@@
-86,6
+92,9
@@
class SiteSQLStoreTest extends MediaWikiTestCase {
$this->assertTrue( $site->getInternalId() >= 0 );
}
$this->assertTrue( $site->getInternalId() >= 0 );
}
+ /**
+ * @covers SiteSQLStore::reset
+ */
public function testReset() {
$store1 = SiteSQLStore::newInstance();
$store2 = SiteSQLStore::newInstance();
public function testReset() {
$store1 = SiteSQLStore::newInstance();
$store2 = SiteSQLStore::newInstance();
@@
-109,6
+118,9
@@
class SiteSQLStoreTest extends MediaWikiTestCase {
$this->assertNull( $site );
}
$this->assertNull( $site );
}
+ /**
+ * @covers SiteSQLStore::clear
+ */
public function testClear() {
$store = SiteSQLStore::newInstance();
$this->assertTrue( $store->clear() );
public function testClear() {
$store = SiteSQLStore::newInstance();
$this->assertTrue( $store->clear() );