[BUGFIX] Failing test in caching framework memcache backend
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 12 Apr 2012 11:25:34 +0000 (13:25 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 12 Apr 2012 11:54:22 +0000 (13:54 +0200)
Bugfix #30162 changed the memcache handling to not throw an exception but
insert a sys_log entry instead in case of connection problems. The patch
removes the according unit test that broke with the
change, since the call to the static syslog is untestable.

Change-Id: I9891a4e571be6f99d86d335dd8bf1786fac87d1e
Resolves: #35897
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/10328
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
tests/t3lib/cache/backend/class.t3lib_cache_backend_memcachedbackendTest.php

index 55eecc7..7db5a52 100644 (file)
@@ -83,19 +83,6 @@ class t3lib_cache_backend_MemcachedBackendTest extends tx_phpunit_testcase {
        /**
         * @test
         * @author Christian Jul Jensen <julle@typo3.org>
-        * @author Ingo Renner <ingo@typo3.org>
-        * @expectedException t3lib_cache_Exception
-        */
-       public function setThrowsExceptionIfConfiguredServersAreUnreachable() {
-               $backend = $this->setUpBackend(array('servers' => array('julle.did.this:1234')));
-               $data = 'Somedata';
-               $identifier = 'MyIdentifier' . md5(uniqid(mt_rand(), TRUE));
-               $backend->set($identifier, $data);
-       }
-
-       /**
-        * @test
-        * @author Christian Jul Jensen <julle@typo3.org>
         */
        public function itIsPossibleToSetAndCheckExistenceInCache() {
                $backend = $this->setUpBackend();