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
Add session_write_close() calls to SessionManager tests
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
resourceloader
/
MessageBlobStoreTest.php
diff --git
a/tests/phpunit/includes/resourceloader/MessageBlobStoreTest.php
b/tests/phpunit/includes/resourceloader/MessageBlobStoreTest.php
index
7521e88
..
4d98773
100644
(file)
--- a/
tests/phpunit/includes/resourceloader/MessageBlobStoreTest.php
+++ b/
tests/phpunit/includes/resourceloader/MessageBlobStoreTest.php
@@
-6,7
+6,7
@@
use Wikimedia\TestingAccessWrapper;
* @group Cache
* @covers MessageBlobStore
*/
* @group Cache
* @covers MessageBlobStore
*/
-class MessageBlobStoreTest extends PHPUnit
_Framework_
TestCase {
+class MessageBlobStoreTest extends PHPUnit
\Framework\
TestCase {
use MediaWikiCoversValidator;
use MediaWikiCoversValidator;
@@
-14,7
+14,7
@@
class MessageBlobStoreTest extends PHPUnit_Framework_TestCase {
parent::setUp();
// MediaWiki tests defaults $wgMainWANCache to CACHE_NONE.
// Use hash instead so that caching is observed
parent::setUp();
// MediaWiki tests defaults $wgMainWANCache to CACHE_NONE.
// Use hash instead so that caching is observed
- $this->wanCache = $this->getMockBuilder(
'WANObjectCache'
)
+ $this->wanCache = $this->getMockBuilder(
WANObjectCache::class
)
->setConstructorArgs( [ [
'cache' => new HashBagOStuff(),
'pool' => 'test',
->setConstructorArgs( [ [
'cache' => new HashBagOStuff(),
'pool' => 'test',
@@
-32,7
+32,7
@@
class MessageBlobStoreTest extends PHPUnit_Framework_TestCase {
}
protected function makeBlobStore( $methods = null, $rl = null ) {
}
protected function makeBlobStore( $methods = null, $rl = null ) {
- $blobStore = $this->getMockBuilder(
'MessageBlobStore'
)
+ $blobStore = $this->getMockBuilder(
MessageBlobStore::class
)
->setConstructorArgs( [ $rl ] )
->setMethods( $methods )
->getMock();
->setConstructorArgs( [ $rl ] )
->setMethods( $methods )
->getMock();
@@
-103,6
+103,11
@@
class MessageBlobStoreTest extends PHPUnit_Framework_TestCase {
$this->assertEquals( '{"foo":"Example"}', $blob, 'Generated blob' );
}
$this->assertEquals( '{"foo":"Example"}', $blob, 'Generated blob' );
}
+ /**
+ * Seems to fail sometimes (T176097).
+ *
+ * @group Broken
+ */
public function testGetBlobCached() {
$module = $this->makeModule( [ 'example' ] );
$rl = new ResourceLoader();
public function testGetBlobCached() {
$module = $this->makeModule( [ 'example' ] );
$rl = new ResourceLoader();