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
CommentStore: Hard-deprecate newKey()
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
CommentStoreTest.php
diff --git
a/tests/phpunit/includes/CommentStoreTest.php
b/tests/phpunit/includes/CommentStoreTest.php
index
f9b592e
..
0c5d8e3
100644
(file)
--- a/
tests/phpunit/includes/CommentStoreTest.php
+++ b/
tests/phpunit/includes/CommentStoreTest.php
@@
-35,6
+35,7
@@
class CommentStoreTest extends MediaWikiLangTestCase {
* @return CommentStore
*/
protected function makeStoreWithKey( $stage, $key ) {
* @return CommentStore
*/
protected function makeStoreWithKey( $stage, $key ) {
+ $this->hideDeprecated( 'CommentStore::newKey' );
$store = CommentStore::newKey( $key );
TestingAccessWrapper::newFromObject( $store )->stage = $stage;
return $store;
$store = CommentStore::newKey( $key );
TestingAccessWrapper::newFromObject( $store )->stage = $stage;
return $store;
@@
-774,6
+775,7
@@
class CommentStoreTest extends MediaWikiLangTestCase {
}
public function testNewKey() {
}
public function testNewKey() {
+ $this->hideDeprecated( 'CommentStore::newKey' );
$this->assertInstanceOf( CommentStore::class, CommentStore::newKey( 'dummy' ) );
}
$this->assertInstanceOf( CommentStore::class, CommentStore::newKey( 'dummy' ) );
}