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 "content: Use Language::factory( 'en' ) instead of wfGetLangObj( 'en' )"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
objectcache
/
MultiWriteBagOStuffTest.php
diff --git
a/tests/phpunit/includes/libs/objectcache/MultiWriteBagOStuffTest.php
b/tests/phpunit/includes/libs/objectcache/MultiWriteBagOStuffTest.php
index
6df74d6
..
38d63e3
100644
(file)
--- a/
tests/phpunit/includes/libs/objectcache/MultiWriteBagOStuffTest.php
+++ b/
tests/phpunit/includes/libs/objectcache/MultiWriteBagOStuffTest.php
@@
-23,6
+23,10
@@
class MultiWriteBagOStuffTest extends MediaWikiTestCase {
] );
}
] );
}
+ /**
+ * @covers MultiWriteBagOStuff::set
+ * @covers MultiWriteBagOStuff::doWrite
+ */
public function testSetImmediate() {
$key = wfRandomString();
$value = wfRandomString();
public function testSetImmediate() {
$key = wfRandomString();
$value = wfRandomString();
@@
-34,6
+38,9
@@
class MultiWriteBagOStuffTest extends MediaWikiTestCase {
$this->assertEquals( $value, $this->cache2->get( $key ), 'Written to tier 2' );
}
$this->assertEquals( $value, $this->cache2->get( $key ), 'Written to tier 2' );
}
+ /**
+ * @covers MultiWriteBagOStuff
+ */
public function testSyncMerge() {
$key = wfRandomString();
$value = wfRandomString();
public function testSyncMerge() {
$key = wfRandomString();
$value = wfRandomString();
@@
-69,6
+76,9
@@
class MultiWriteBagOStuffTest extends MediaWikiTestCase {
$dbw->commit();
}
$dbw->commit();
}
+ /**
+ * @covers MultiWriteBagOStuff::set
+ */
public function testSetDelayed() {
$key = wfRandomString();
$value = wfRandomString();
public function testSetDelayed() {
$key = wfRandomString();
$value = wfRandomString();