From 2ca76c62d0a2ed46d8ccd557e1a4bfc05ebd732c Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 4 Dec 2015 12:31:01 -0800 Subject: [PATCH] Remove redundant testGetMulti() assertion Change-Id: Iadbf39de9c6be2baeb7c2f7c1dce39e9f2bed2e4 --- .../includes/libs/objectcache/WANObjectCacheTest.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php b/tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php index e2c6ac7737..1511557c62 100644 --- a/tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php +++ b/tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php @@ -247,7 +247,8 @@ class WANObjectCacheTest extends MediaWikiTestCase { $curTTLs = array(); $this->assertEquals( array( $key1 => $value1, $key2 => $value2 ), - $cache->getMulti( array( $key1, $key2, $key3 ), $curTTLs ) + $cache->getMulti( array( $key1, $key2, $key3 ), $curTTLs ), + 'Result array populated' ); $this->assertEquals( 2, count( $curTTLs ), "Two current TTLs in array" ); @@ -256,12 +257,6 @@ class WANObjectCacheTest extends MediaWikiTestCase { $cKey1 = wfRandomString(); $cKey2 = wfRandomString(); - $curTTLs = array(); - $this->assertEquals( - array( $key1 => $value1, $key2 => $value2 ), - $cache->getMulti( array( $key1, $key2, $key3 ), $curTTLs ), - 'Result array populated' - ); $priorTime = microtime( true ); usleep( 1 ); -- 2.20.1