diff options
author | Aaron Schulz <aschulz@wikimedia.org> | 2017-11-20 16:04:38 -0800 |
---|---|---|
committer | Krinkle <krinklemail@gmail.com> | 2017-11-21 02:45:01 +0000 |
commit | 67072948b6210b836e864ed6096b16027caeb300 (patch) | |
tree | cf9cf9929232c1208879c5e17eeb54c13df437f5 /tests/phpunit/includes/objectcache | |
parent | 09ba8f4cbef8606e95b407cf370b270e5153b2b5 (diff) | |
download | mediawikicore-67072948b6210b836e864ed6096b16027caeb300.tar.gz mediawikicore-67072948b6210b836e864ed6096b16027caeb300.zip |
objectcache: Make MemcachedBagOStuff::makeKeyInternal always have a key class
Even if a key is too long and shortened, it should still have some key class.
Change-Id: I006b6b03ad1302e9e49362bbd051332bc6105837
Diffstat (limited to 'tests/phpunit/includes/objectcache')
-rw-r--r-- | tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php b/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php index 7814b83051ef..9cb2f9493b3a 100644 --- a/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php +++ b/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php @@ -42,7 +42,7 @@ class MemcachedBagOStuffTest extends MediaWikiTestCase { ); $this->assertEquals( - 'test:##dc89dcb43b28614da27660240af478b5', + 'test:BagOStuff-long-key:##dc89dcb43b28614da27660240af478b5', $this->cache->makeKey( '𝕖𝕧𝕖𝕟', '𝕚𝕗', '𝕨𝕖', '𝕄𝔻𝟝', '𝕖𝕒𝕔𝕙', '𝕒𝕣𝕘𝕦𝕞𝕖𝕟𝕥', '𝕥𝕙𝕚𝕤', '𝕜𝕖𝕪', '𝕨𝕠𝕦𝕝𝕕', '𝕤𝕥𝕚𝕝𝕝', '𝕓𝕖', '𝕥𝕠𝕠', '𝕝𝕠𝕟𝕘' ) ); |