[BUGFIX] Failing test in caching framework memcache backend
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 12 Apr 2012 12:09:20 +0000 (14:09 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 12 Apr 2012 12:11:32 +0000 (14:11 +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: I5c3f4189b1d1f975a2a0ca51b420c66667264e65
Resolves: #35897
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/10332
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
tests/t3lib/cache/backend/t3lib_cache_backend_memcachedbackendTest.php

index 3c72946..150c2f5 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 = uniqid('MyIdentifier');
-               $backend->set($identifier, $data);
-       }
-
-       /**
-        * @test
-        * @author Christian Jul Jensen <julle@typo3.org>
         */
        public function itIsPossibleToSetAndCheckExistenceInCache() {
                $backend = $this->setUpBackend();